equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
63 inline void Thread::set_critical_native_unlock() { |
63 inline void Thread::set_critical_native_unlock() { |
64 set_suspend_flag(_critical_native_unlock); |
64 set_suspend_flag(_critical_native_unlock); |
65 } |
65 } |
66 inline void Thread::clear_critical_native_unlock() { |
66 inline void Thread::clear_critical_native_unlock() { |
67 clear_suspend_flag(_critical_native_unlock); |
67 clear_suspend_flag(_critical_native_unlock); |
|
68 } |
|
69 inline void Thread::set_trace_flag() { |
|
70 set_suspend_flag(_trace_flag); |
|
71 } |
|
72 inline void Thread::clear_trace_flag() { |
|
73 clear_suspend_flag(_trace_flag); |
68 } |
74 } |
69 |
75 |
70 inline jlong Thread::cooked_allocated_bytes() { |
76 inline jlong Thread::cooked_allocated_bytes() { |
71 jlong allocated_bytes = OrderAccess::load_acquire(&_allocated_bytes); |
77 jlong allocated_bytes = OrderAccess::load_acquire(&_allocated_bytes); |
72 if (UseTLAB) { |
78 if (UseTLAB) { |