Changeset 300


Ignore:
Timestamp:
Jun 27, 2011, 10:10:46 AM (14 years ago)
Author:
dmik
Message:

hotspot: VMError::report(): Fixed memory leaks (and the assertion in the debug build) when allocating temporary string buffers in the resource area [vendor bug].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/src/share/vm/utilities/vmError.cpp

    r278 r300  
    306306  static char buf[O_BUFLEN];
    307307
     308  // Many methods returning informational strings (such as JavaThread::
     309  // get_thread_name() and methodOopDesc::name_and_sig_as_C_stringuses())
     310  // allocate them using the ResourceArea instance which needs a ResourceMark
     311  ResourceMark rm;
     312
    308313  BEGIN
    309314
Note: See TracChangeset for help on using the changeset viewer.