Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/memTracker.cpp @ 6781:b711844284e2
7200092: Make NMT a bit friendlier to work with
Reviewed-by: kvn, ysr, azeemj
author | nloodin |
---|---|
date | Fri, 21 Sep 2012 10:56:28 +0200 |
parents | 716e6ef4482a |
children | 716c64bda5ba |
comparison
equal
deleted
inserted
replaced
6780:8440414b0fd8 | 6781:b711844284e2 |
---|---|
69 | 69 |
70 void MemTracker::init_tracking_options(const char* option_line) { | 70 void MemTracker::init_tracking_options(const char* option_line) { |
71 _tracking_level = NMT_off; | 71 _tracking_level = NMT_off; |
72 if (strncmp(option_line, "=summary", 8) == 0) { | 72 if (strncmp(option_line, "=summary", 8) == 0) { |
73 _tracking_level = NMT_summary; | 73 _tracking_level = NMT_summary; |
74 } else if (strncmp(option_line, "=detail", 8) == 0) { | 74 } else if (strncmp(option_line, "=detail", 7) == 0) { |
75 _tracking_level = NMT_detail; | 75 _tracking_level = NMT_detail; |
76 } else { | |
77 char msg[255]; | |
78 //+1 to remove the '=' character | |
79 jio_snprintf(msg, 255, "Unknown option given to XX:NativeMemoryTracking: %s", option_line+1); | |
80 vm_exit_during_initialization(msg, NULL); | |
76 } | 81 } |
77 } | 82 } |
78 | 83 |
79 // first phase of bootstrapping, when VM is still in single-threaded mode. | 84 // first phase of bootstrapping, when VM is still in single-threaded mode. |
80 void MemTracker::bootstrap_single_thread() { | 85 void MemTracker::bootstrap_single_thread() { |