Mercurial > hg > truffle
comparison src/share/vm/runtime/javaCalls.cpp @ 20375:6e0cb14ce59b
8046070: Class Data Sharing clean up and refactoring
Summary: Cleaned up CDS to be more configurable, maintainable and extensible
Reviewed-by: dholmes, coleenp, acorn, mchung
author | iklam |
---|---|
date | Thu, 21 Aug 2014 13:57:51 -0700 |
parents | 190899198332 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20374:999824269b71 | 20375:6e0cb14ce59b |
---|---|
306 // stack that has installed its own exception handlers | 306 // stack that has installed its own exception handlers |
307 os::os_exception_wrapper(call_helper, result, &method, args, THREAD); | 307 os::os_exception_wrapper(call_helper, result, &method, args, THREAD); |
308 } | 308 } |
309 | 309 |
310 void JavaCalls::call_helper(JavaValue* result, methodHandle* m, JavaCallArguments* args, TRAPS) { | 310 void JavaCalls::call_helper(JavaValue* result, methodHandle* m, JavaCallArguments* args, TRAPS) { |
311 // During dumping, Java execution environment is not fully initialized. Also, Java execution | |
312 // may cause undesirable side-effects in the class metadata. | |
313 assert(!DumpSharedSpaces, "must not execute Java bytecodes when dumping"); | |
314 | |
311 methodHandle method = *m; | 315 methodHandle method = *m; |
312 JavaThread* thread = (JavaThread*)THREAD; | 316 JavaThread* thread = (JavaThread*)THREAD; |
313 assert(thread->is_Java_thread(), "must be called by a java thread"); | 317 assert(thread->is_Java_thread(), "must be called by a java thread"); |
314 assert(method.not_null(), "must have a method to call"); | 318 assert(method.not_null(), "must have a method to call"); |
315 assert(!SafepointSynchronize::is_at_safepoint(), "call to Java code during VM operation"); | 319 assert(!SafepointSynchronize::is_at_safepoint(), "call to Java code during VM operation"); |