Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalVMToCompiler.hpp @ 6503:ac3a4ea144a6
simplified error checking when loading Graal classes from the C++ code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 03 Oct 2012 20:38:40 +0200 |
parents | 120820e30baa |
children | 1ecf984d490c |
comparison
equal
deleted
inserted
replaced
6502:5bb92f6ab5a9 | 6503:ac3a4ea144a6 |
---|---|
116 | 116 |
117 vm_abort(dump_core); | 117 vm_abort(dump_core); |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 inline void check_not_null(void* value, const char* message, bool dump_core = false) { | |
122 if (value == NULL) { | |
123 tty->print_cr("%s", message); | |
124 vm_abort(dump_core); | |
125 } | |
126 } | |
127 | |
128 #endif // SHARE_VM_GRAAL_GRAAL_VM_TO_COMPILER_HPP | 121 #endif // SHARE_VM_GRAAL_GRAAL_VM_TO_COMPILER_HPP |