equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. |
3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
205 } |
205 } |
206 |
206 |
207 /*if (thread->thread_state() == _thread_in_Java) { |
207 /*if (thread->thread_state() == _thread_in_Java) { |
208 ShouldNotCallThis(); |
208 ShouldNotCallThis(); |
209 } |
209 } |
210 else*/ if (thread->thread_state() == _thread_in_vm && |
210 else*/ if ((thread->thread_state() == _thread_in_vm || |
|
211 thread->thread_state() == _thread_in_native) && |
211 sig == SIGBUS && thread->doing_unsafe_access()) { |
212 sig == SIGBUS && thread->doing_unsafe_access()) { |
212 ShouldNotCallThis(); |
213 ShouldNotCallThis(); |
213 } |
214 } |
214 |
215 |
215 // jni_fast_Get<Primitive>Field can trap at certain pc's if a GC |
216 // jni_fast_Get<Primitive>Field can trap at certain pc's if a GC |