7009828: Fix for 6938627 breaks visualvm monitoring when -Djava.io.tmpdir is defined
Summary: Change get_temp_directory() back to /tmp and %TEMP% like it always was and where the tools expect it to be.
Reviewed-by: phh, dcubed, kamg, alanb
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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
7 * published by the Free Software Foundation.
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
25 # include "incls/_precompiled.incl"
26 # include "incls/_vmError.cpp.incl"
28 // List of environment variables that should be reported in error log file.
29 const char *env_list[] = {
31 "JAVA_HOME", "JRE_HOME", "JAVA_TOOL_OPTIONS", "_JAVA_OPTIONS", "CLASSPATH",
32 "JAVA_COMPILER", "PATH", "USERNAME",
34 // Env variables that are defined on Solaris/Linux
35 "LD_LIBRARY_PATH", "LD_PRELOAD", "SHELL", "DISPLAY",
36 "HOSTTYPE", "OSTYPE", "ARCH", "MACHTYPE",
39 "LD_ASSUME_KERNEL", "_JAVA_SR_SIGNUM",
42 "OS", "PROCESSOR_IDENTIFIER", "_ALT_JAVA_HOME_DIR",
47 // Fatal error handler for internal errors and crashes.
49 // The default behavior of fatal error handler is to print a brief message
50 // to standard out (defaultStream::output_fd()), then save detailed information
51 // into an error report file (hs_err_pid<pid>.log) and abort VM. If multiple
52 // threads are having troubles at the same time, only one error is reported.
53 // The thread that is reporting error will abort VM when it is done, all other
54 // threads are blocked forever inside report_and_die().
56 // Constructor for crashes
57 VMError::VMError(Thread* thread, int sig, address pc, void* siginfo, void* context) {
66 _current_step_info = NULL;
76 // Constructor for internal errors
77 VMError::VMError(Thread* thread, const char* filename, int lineno,
78 const char* message, const char * detail_msg)
81 _id = internal_error; // Value that's not an OS exception/signal
85 _detail_msg = detail_msg;
89 _current_step_info = NULL;
98 // Constructor for OOM errors
99 VMError::VMError(Thread* thread, const char* filename, int lineno, size_t size,
100 const char* message) {
102 _id = oom_error; // Value that's not an OS exception/signal
103 _filename = filename;
110 _current_step_info = NULL;
120 // Constructor for non-fatal errors
121 VMError::VMError(const char* message) {
123 _id = internal_error; // Value that's not an OS exception/signal
131 _current_step_info = NULL;
140 // -XX:OnError=<string>, where <string> can be a list of commands, separated
141 // by ';'. "%p" is replaced by current process id (pid); "%%" is replaced by
142 // a single "%". Some examples:
144 // -XX:OnError="pmap %p" // show memory map
145 // -XX:OnError="gcore %p; dbx - %p" // dump core and launch debugger
146 // -XX:OnError="cat hs_err_pid%p.log | mail my_email@sun.com"
147 // -XX:OnError="kill -9 %p" // ?#!@#
149 // A simple parser for -XX:OnError, usage:
151 // while ((cmd = next_OnError_command(buffer, sizeof(buffer), &ptr) != NULL)
153 static char* next_OnError_command(char* buf, int buflen, const char** ptr) {
154 if (ptr == NULL || *ptr == NULL) return NULL;
156 const char* cmd = *ptr;
158 // skip leading blanks or ';'
159 while (*cmd == ' ' || *cmd == ';') cmd++;
161 if (*cmd == '\0') return NULL;
163 const char * cmdend = cmd;
164 while (*cmdend != '\0' && *cmdend != ';') cmdend++;
166 Arguments::copy_expand_pid(cmd, cmdend - cmd, buf, buflen);
168 *ptr = (*cmdend == '\0' ? cmdend : cmdend + 1);
173 static void print_bug_submit_message(outputStream *out, Thread *thread) {
174 if (out == NULL) return;
175 out->print_raw_cr("# If you would like to submit a bug report, please visit:");
176 out->print_raw ("# ");
177 out->print_raw_cr(Arguments::java_vendor_url_bug());
178 // If the crash is in native code, encourage user to submit a bug to the
179 // provider of that code.
180 if (thread && thread->is_Java_thread() &&
181 !thread->is_hidden_from_external_view()) {
182 JavaThread* jt = (JavaThread*)thread;
183 if (jt->thread_state() == _thread_in_native) {
184 out->print_cr("# The crash happened outside the Java Virtual Machine in native code.\n# See problematic frame for where to report the bug.");
187 out->print_raw_cr("#");
191 // Return a string to describe the error
192 char* VMError::error_string(char* buf, int buflen) {
193 char signame_buf[64];
194 const char *signame = os::exception_name(_id, signame_buf, sizeof(signame_buf));
197 jio_snprintf(buf, buflen,
198 "%s (0x%x) at pc=" PTR_FORMAT ", pid=%d, tid=" UINTX_FORMAT,
200 os::current_process_id(), os::current_thread_id());
201 } else if (_filename != NULL && _lineno > 0) {
202 // skip directory names
203 char separator = os::file_separator()[0];
204 const char *p = strrchr(_filename, separator);
205 int n = jio_snprintf(buf, buflen,
206 "Internal Error at %s:%d, pid=%d, tid=" UINTX_FORMAT,
207 p ? p + 1 : _filename, _lineno,
208 os::current_process_id(), os::current_thread_id());
209 if (n >= 0 && n < buflen && _message) {
211 jio_snprintf(buf + n, buflen - n, "%s%s: %s",
212 os::line_separator(), _message, _detail_msg);
214 jio_snprintf(buf + n, buflen - n, "%sError: %s",
215 os::line_separator(), _message);
219 jio_snprintf(buf, buflen,
220 "Internal Error (0x%x), pid=%d, tid=" UINTX_FORMAT,
221 _id, os::current_process_id(), os::current_thread_id());
227 void VMError::print_stack_trace(outputStream* st, JavaThread* jt,
228 char* buf, int buflen, bool verbose) {
230 if (jt->zero_stack()->sp() && jt->top_zero_frame()) {
231 // StackFrameStream uses the frame anchor, which may not have
232 // been set up. This can be done at any time in Zero, however,
233 // so if it hasn't been set up then we just set it up now and
234 // clear it again when we're done.
235 bool has_last_Java_frame = jt->has_last_Java_frame();
236 if (!has_last_Java_frame)
237 jt->set_last_Java_frame();
238 st->print("Java frames:");
240 // If the top frame is a Shark frame and the frame anchor isn't
241 // set up then it's possible that the information in the frame
242 // is garbage: it could be from a previous decache, or it could
243 // simply have never been written. So we print a warning...
244 StackFrameStream sfs(jt);
245 if (!has_last_Java_frame && !sfs.is_done()) {
246 if (sfs.current()->zeroframe()->is_shark_frame()) {
247 st->print(" (TOP FRAME MAY BE JUNK)");
253 for(int i = 0; !sfs.is_done(); sfs.next(), i++) {
254 sfs.current()->zero_print_on_error(i, st, buf, buflen);
258 // Reset the frame anchor if necessary
259 if (!has_last_Java_frame)
260 jt->reset_last_Java_frame();
263 if (jt->has_last_Java_frame()) {
264 st->print_cr("Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)");
265 for(StackFrameStream sfs(jt); !sfs.is_done(); sfs.next()) {
266 sfs.current()->print_on_error(st, buf, buflen, verbose);
273 // This is the main function to report a fatal error. Only one thread can
274 // call this function, so we don't need to worry about MT-safety. But it's
275 // possible that the error handler itself may crash or die on an internal
276 // error, for example, when the stack/heap is badly damaged. We must be
277 // able to handle recursive errors that happen inside error handler.
279 // Error reporting is done in several steps. If a crash or internal error
280 // occurred when reporting an error, the nested signal/exception handler
281 // can skip steps that are already (or partially) done. Error reporting will
282 // continue from the next step. This allows us to retrieve and print
283 // information that may be unsafe to get after a fatal error. If it happens,
284 // you may find nested report_and_die() frames when you look at the stack
287 // In general, a hang in error handler is much worse than a crash or internal
288 // error, as it's harder to recover from a hang. Deadlock can happen if we
289 // try to grab a lock that is already owned by current thread, or if the
290 // owner is blocked forever (e.g. in os::infinite_sleep()). If possible, the
291 // error handler and all the functions it called should avoid grabbing any
292 // lock. An important thing to notice is that memory allocation needs a lock.
294 // We should avoid using large stack allocated buffers. Many errors happen
295 // when stack space is already low. Making things even worse is that there
296 // could be nested report_and_die() calls on stack (see above). Only one
297 // thread can report error, so large buffers are statically allocated in data
300 void VMError::report(outputStream* st) {
301 # define BEGIN if (_current_step == 0) { _current_step = 1;
302 # define STEP(n, s) } if (_current_step < n) { _current_step = n; _current_step_info = s;
305 // don't allocate large buffer on stack
306 static char buf[O_BUFLEN];
310 STEP(10, "(printing fatal error message)")
313 st->print_cr("# A fatal error has been detected by the Java Runtime Environment:");
315 STEP(15, "(printing type of error)")
320 st->print("# java.lang.OutOfMemoryError: ");
322 st->print("requested ");
323 sprintf(buf,SIZE_FORMAT,_size);
326 if (_message != NULL) {
330 st->print_cr(". Out of swap space?");
332 if (_message != NULL)
333 st->print_cr(_message);
341 STEP(20, "(printing exception/signal name)")
345 // Is it an OS exception/signal?
346 if (os::exception_name(_id, buf, sizeof(buf))) {
347 st->print("%s", buf);
348 st->print(" (0x%x)", _id); // signal number
349 st->print(" at pc=" PTR_FORMAT, _pc);
351 st->print("Internal Error");
352 if (_filename != NULL && _lineno > 0) {
354 // In product mode chop off pathname?
355 char separator = os::file_separator()[0];
356 const char *p = strrchr(_filename, separator);
357 const char *file = p ? p+1 : _filename;
359 const char *file = _filename;
361 size_t len = strlen(file);
362 size_t buflen = sizeof(buf);
364 strncpy(buf, file, buflen);
365 if (len + 10 < buflen) {
366 sprintf(buf + len, ":%d", _lineno);
368 st->print(" (%s)", buf);
370 st->print(" (0x%x)", _id);
374 STEP(30, "(printing current thread and pid)")
376 // process id, thread id
377 st->print(", pid=%d", os::current_process_id());
378 st->print(", tid=" UINTX_FORMAT, os::current_thread_id());
381 STEP(40, "(printing error message)")
385 st->print_cr("# %s: %s", _message ? _message : "Error", _detail_msg);
386 } else if (_message) {
387 st->print_cr("# Error: %s", _message);
390 STEP(50, "(printing Java version string)")
394 JDK_Version::current().to_string(buf, sizeof(buf));
395 st->print_cr("# JRE version: %s", buf);
396 st->print_cr("# Java VM: %s (%s %s %s %s)",
397 Abstract_VM_Version::vm_name(),
398 Abstract_VM_Version::vm_release(),
399 Abstract_VM_Version::vm_info_string(),
400 Abstract_VM_Version::vm_platform_string(),
401 UseCompressedOops ? "compressed oops" : ""
404 STEP(60, "(printing problematic frame)")
406 // Print current frame if we have a context (i.e. it's a crash)
408 st->print_cr("# Problematic frame:");
410 frame fr = os::fetch_frame_from_context(_context);
411 fr.print_on_error(st, buf, sizeof(buf));
416 STEP(65, "(printing bug submit message)")
418 if (_verbose) print_bug_submit_message(st, _thread);
420 STEP(70, "(printing thread)" )
424 st->print_cr("--------------- T H R E A D ---------------");
428 STEP(80, "(printing current thread)" )
433 st->print("Current thread (" PTR_FORMAT "): ", _thread);
434 _thread->print_on_error(st, buf, sizeof(buf));
437 st->print_cr("Current thread is native thread");
442 STEP(90, "(printing siginfo)" )
444 // signal no, signal code, address that caused the fault
445 if (_verbose && _siginfo) {
446 os::print_siginfo(st, _siginfo);
450 STEP(100, "(printing registers, top of stack, instructions near pc)")
452 // registers, top of stack, instructions near pc
453 if (_verbose && _context) {
454 os::print_context(st, _context);
458 STEP(110, "(printing stack bounds)" )
461 st->print("Stack: ");
467 stack_top = _thread->stack_base();
468 stack_size = _thread->stack_size();
470 stack_top = os::current_stack_base();
471 stack_size = os::current_stack_size();
474 address stack_bottom = stack_top - stack_size;
475 st->print("[" PTR_FORMAT "," PTR_FORMAT "]", stack_bottom, stack_top);
477 frame fr = _context ? os::fetch_frame_from_context(_context)
478 : os::current_frame();
481 st->print(", sp=" PTR_FORMAT, fr.sp());
482 size_t free_stack_size = pointer_delta(fr.sp(), stack_bottom, 1024);
483 st->print(", free space=" SIZE_FORMAT "k", free_stack_size);
489 STEP(120, "(printing native stack)" )
492 frame fr = _context ? os::fetch_frame_from_context(_context)
493 : os::current_frame();
495 // see if it's a valid frame
497 st->print_cr("Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)");
501 while (count++ < StackPrintLimit) {
502 fr.print_on_error(st, buf, sizeof(buf));
504 if (os::is_first_C_frame(&fr)) break;
505 fr = os::get_sender_for_C_frame(&fr);
508 if (count > StackPrintLimit) {
509 st->print_cr("...<more frames>...");
516 STEP(130, "(printing Java stack)" )
518 if (_verbose && _thread && _thread->is_Java_thread()) {
519 print_stack_trace(st, (JavaThread*)_thread, buf, sizeof(buf));
522 STEP(135, "(printing target Java thread stack)" )
524 // printing Java thread stack trace if it is involved in GC crash
525 if (_verbose && _thread && (_thread->is_Named_thread())) {
526 JavaThread* jt = ((NamedThread *)_thread)->processed_thread();
528 st->print_cr("JavaThread " PTR_FORMAT " (nid = " UINTX_FORMAT ") was being processed", jt, jt->osthread()->thread_id());
529 print_stack_trace(st, jt, buf, sizeof(buf), true);
533 STEP(140, "(printing VM operation)" )
535 if (_verbose && _thread && _thread->is_VM_thread()) {
536 VMThread* t = (VMThread*)_thread;
537 VM_Operation* op = t->vm_operation();
539 op->print_on_error(st);
545 STEP(150, "(printing current compile task)" )
547 if (_verbose && _thread && _thread->is_Compiler_thread()) {
548 CompilerThread* t = (CompilerThread*)_thread;
551 st->print_cr("Current CompileTask:");
552 t->task()->print_line_on_error(st, buf, sizeof(buf));
557 STEP(160, "(printing process)" )
561 st->print_cr("--------------- P R O C E S S ---------------");
565 STEP(170, "(printing all threads)" )
568 if (_verbose && _thread) {
569 Threads::print_on_error(st, _thread, buf, sizeof(buf));
573 STEP(175, "(printing VM state)" )
577 st->print("VM state:");
579 if (SafepointSynchronize::is_synchronizing()) st->print("synchronizing");
580 else if (SafepointSynchronize::is_at_safepoint()) st->print("at safepoint");
581 else st->print("not at safepoint");
583 // Also see if error occurred during initialization or shutdown
584 if (!Universe::is_fully_initialized()) {
585 st->print(" (not fully initialized)");
586 } else if (VM_Exit::vm_exited()) {
587 st->print(" (shutting down)");
589 st->print(" (normal execution)");
595 STEP(180, "(printing owned locks on error)" )
597 // mutexes/monitors that currently have an owner
599 print_owned_locks_on_error(st);
603 STEP(190, "(printing heap information)" )
605 if (_verbose && Universe::is_fully_initialized()) {
606 // print heap information before vm abort
607 Universe::print_on(st);
611 STEP(200, "(printing dynamic libraries)" )
614 // dynamic libraries, or memory map
615 os::print_dll_info(st);
619 STEP(210, "(printing VM options)" )
623 Arguments::print_on(st);
627 STEP(220, "(printing environment variables)" )
630 os::print_environment_variables(st, env_list, buf, sizeof(buf));
634 STEP(225, "(printing signal handlers)" )
637 os::print_signal_handlers(st, buf, sizeof(buf));
645 st->print_cr("--------------- S Y S T E M ---------------");
649 STEP(240, "(printing OS information)" )
652 os::print_os_info(st);
656 STEP(250, "(printing CPU info)" )
658 os::print_cpu_info(st);
662 STEP(260, "(printing memory info)" )
665 os::print_memory_info(st);
669 STEP(270, "(printing internal vm info)" )
672 st->print_cr("vm_info: %s", Abstract_VM_Version::internal_vm_info_string());
676 STEP(280, "(printing date and time)" )
679 os::print_date_and_time(st);
690 VMError* volatile VMError::first_error = NULL;
691 volatile jlong VMError::first_error_tid = -1;
693 void VMError::report_and_die() {
694 // Don't allocate large buffer on stack
695 static char buffer[O_BUFLEN];
697 // An error could happen before tty is initialized or after it has been
698 // destroyed. Here we use a very simple unbuffered fdStream for printing.
699 // Only out.print_raw() and out.print_raw_cr() should be used, as other
700 // printing methods need to allocate large buffer on stack. To format a
701 // string, use jio_snprintf() with a static buffer or use staticBufferStream.
702 static fdStream out(defaultStream::output_fd());
704 // How many errors occurred in error handler when reporting first_error.
705 static int recursive_error_count;
707 // We will first print a brief message to standard out (verbose = false),
708 // then save detailed information in log file (verbose = true).
709 static bool out_done = false; // done printing to standard out
710 static bool log_done = false; // done saving error log
711 static fdStream log; // error log
713 if (SuppressFatalErrorMessage) {
716 jlong mytid = os::current_thread_id();
717 if (first_error == NULL &&
718 Atomic::cmpxchg_ptr(this, &first_error, NULL) == NULL) {
721 first_error_tid = mytid;
722 set_error_reported();
724 if (ShowMessageBoxOnError) {
725 show_message_box(buffer, sizeof(buffer));
727 // User has asked JVM to abort. Reset ShowMessageBoxOnError so the
728 // WatcherThread can kill JVM if the error handler hangs.
729 ShowMessageBoxOnError = false;
732 // reset signal handlers or exception filter; make sure recursive crashes
733 // are handled properly.
734 reset_signal_handlers();
737 // If UseOsErrorReporting we call this for each level of the call stack
738 // while searching for the exception handler. Only the first level needs
740 if (UseOSErrorReporting && log_done) return;
742 // This is not the first error, see if it happened in a different thread
743 // or in the same thread during error reporting.
744 if (first_error_tid != mytid) {
745 jio_snprintf(buffer, sizeof(buffer),
746 "[thread " INT64_FORMAT " also had an error]",
748 out.print_raw_cr(buffer);
750 // error reporting is not MT-safe, block current thread
751 os::infinite_sleep();
754 if (recursive_error_count++ > 30) {
755 out.print_raw_cr("[Too many errors, abort]");
759 jio_snprintf(buffer, sizeof(buffer),
760 "[error occurred during error reporting %s, id 0x%x]",
761 first_error ? first_error->_current_step_info : "",
765 log.print_raw_cr(buffer);
769 out.print_raw_cr(buffer);
777 first_error->_verbose = false;
779 staticBufferStream sbs(buffer, sizeof(buffer), &out);
780 first_error->report(&sbs);
784 first_error->_current_step = 0; // reset current_step
785 first_error->_current_step_info = ""; // reset current_step string
788 // print to error log file
790 first_error->_verbose = true;
792 // see if log file is already open
793 if (!log.is_open()) {
797 if (ErrorFile != NULL) {
799 Arguments::copy_expand_pid(ErrorFile, strlen(ErrorFile), buffer, sizeof(buffer));
801 fd = open(buffer, O_WRONLY | O_CREAT | O_TRUNC, 0666);
806 const char *cwd = os::get_current_directory(buffer, sizeof(buffer));
807 size_t len = strlen(cwd);
808 // either user didn't specify, or the user's location failed,
809 // so use the default name in the current directory
810 jio_snprintf(&buffer[len], sizeof(buffer)-len, "%shs_err_pid%u.log",
811 os::file_separator(), os::current_process_id());
812 fd = open(buffer, O_WRONLY | O_CREAT | O_TRUNC, 0666);
816 const char * tmpdir = os::get_temp_directory();
817 // try temp directory if it exists.
818 if (tmpdir != NULL && tmpdir[0] != '\0') {
819 jio_snprintf(buffer, sizeof(buffer), "%s%shs_err_pid%u.log",
820 tmpdir, os::file_separator(), os::current_process_id());
821 fd = open(buffer, O_WRONLY | O_CREAT | O_TRUNC, 0666);
826 out.print_raw("# An error report file with more information is saved as:\n# ");
827 out.print_raw_cr(buffer);
828 os::set_error_file(buffer);
832 out.print_raw_cr("# Can not save log file, dump to screen..");
833 log.set_fd(defaultStream::output_fd());
837 staticBufferStream sbs(buffer, O_BUFLEN, &log);
838 first_error->report(&sbs);
839 first_error->_current_step = 0; // reset current_step
840 first_error->_current_step_info = ""; // reset current_step string
842 if (log.fd() != defaultStream::output_fd()) {
851 static bool skip_OnError = false;
852 if (!skip_OnError && OnError && OnError[0]) {
855 out.print_raw_cr("#");
856 out.print_raw ("# -XX:OnError=\"");
857 out.print_raw (OnError);
858 out.print_raw_cr("\"");
861 const char* ptr = OnError;
862 while ((cmd = next_OnError_command(buffer, sizeof(buffer), &ptr)) != NULL){
863 out.print_raw ("# Executing ");
865 out.print_raw ("/bin/sh -c ");
866 #elif defined(SOLARIS)
867 out.print_raw ("/usr/bin/sh -c ");
869 out.print_raw ("\"");
871 out.print_raw_cr("\" ...");
873 os::fork_and_exec(cmd);
880 static bool skip_bug_url = false;
884 out.print_raw_cr("#");
885 print_bug_submit_message(&out, _thread);
888 if (!UseOSErrorReporting) {
889 // os::abort() will call abort hooks, try it first.
890 static bool skip_os_abort = false;
891 if (!skip_os_abort) {
892 skip_os_abort = true;
896 // if os::abort() doesn't abort, try os::die();
902 * OnOutOfMemoryError scripts/commands executed while VM is a safepoint - this
903 * ensures utilities such as jmap can observe the process is a consistent state.
905 class VM_ReportJavaOutOfMemory : public VM_Operation {
909 VM_ReportJavaOutOfMemory(VMError *err) { _err = err; }
910 VMOp_Type type() const { return VMOp_ReportJavaOutOfMemory; }
914 void VM_ReportJavaOutOfMemory::doit() {
915 // Don't allocate large buffer on stack
916 static char buffer[O_BUFLEN];
919 tty->print_cr("# java.lang.OutOfMemoryError: %s", _err->message());
920 tty->print_cr("# -XX:OnOutOfMemoryError=\"%s\"", OnOutOfMemoryError);
922 // make heap parsability
923 Universe::heap()->ensure_parsability(false); // no need to retire TLABs
926 const char* ptr = OnOutOfMemoryError;
927 while ((cmd = next_OnError_command(buffer, sizeof(buffer), &ptr)) != NULL){
928 tty->print("# Executing ");
930 tty->print ("/bin/sh -c ");
931 #elif defined(SOLARIS)
932 tty->print ("/usr/bin/sh -c ");
934 tty->print_cr("\"%s\"...", cmd);
936 os::fork_and_exec(cmd);
940 void VMError::report_java_out_of_memory() {
941 if (OnOutOfMemoryError && OnOutOfMemoryError[0]) {
942 MutexLocker ml(Heap_lock);
943 VM_ReportJavaOutOfMemory op(this);
944 VMThread::execute(&op);