Mercurial > hg > truffle
diff src/share/vm/runtime/objectMonitor.cpp @ 10161:746b070f5022
8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"
Reviewed-by: coleenp, zgu, hseigel
author | ccheung |
---|---|
date | Tue, 30 Apr 2013 11:56:52 -0700 |
parents | 22ba8c8ce6a6 |
children | f2110083203d |
line wrap: on
line diff
--- a/src/share/vm/runtime/objectMonitor.cpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/share/vm/runtime/objectMonitor.cpp Tue Apr 30 11:56:52 2013 -0700 @@ -2404,7 +2404,7 @@ size_t sz = strlen (SyncKnobs) ; char * knobs = (char *) malloc (sz + 2) ; if (knobs == NULL) { - vm_exit_out_of_memory (sz + 2, "Parse SyncKnobs") ; + vm_exit_out_of_memory (sz + 2, OOM_MALLOC_ERROR, "Parse SyncKnobs") ; guarantee (0, "invariant") ; } strcpy (knobs, SyncKnobs) ;