Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/memprofiler.cpp @ 513:2328d1d3f8cf
6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Summary: Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2
Reviewed-by: jcoomes, acorn, phh, never
author | xlu |
---|---|
date | Wed, 24 Dec 2008 19:13:53 -0800 |
parents | a61af66fc99e |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
512:db4caa99ef11 | 513:2328d1d3f8cf |
---|---|
102 resource_memory_usage += cur->resource_area()->size_in_bytes(); | 102 resource_memory_usage += cur->resource_area()->size_in_bytes(); |
103 cur = cur->next(); | 103 cur = cur->next(); |
104 } | 104 } |
105 | 105 |
106 // Print trace line in log | 106 // Print trace line in log |
107 fprintf(_log_fp, "%6.1f,%5d,%5d,%6ld,%6ld,%6ld,%6ld,", | 107 fprintf(_log_fp, "%6.1f,%5d,%5d," UINTX_FORMAT_W(6) "," UINTX_FORMAT_W(6) "," |
108 os::elapsedTime(), | 108 UINTX_FORMAT_W(6) "," UINTX_FORMAT_W(6) ",", |
109 Threads::number_of_threads(), | 109 os::elapsedTime(), |
110 SystemDictionary::number_of_classes(), | 110 Threads::number_of_threads(), |
111 Universe::heap()->used() / K, | 111 SystemDictionary::number_of_classes(), |
112 Universe::heap()->capacity() / K, | 112 Universe::heap()->used() / K, |
113 Universe::heap()->permanent_used() / HWperKB, | 113 Universe::heap()->capacity() / K, |
114 Universe::heap()->permanent_capacity() / HWperKB); | 114 Universe::heap()->permanent_used() / HWperKB, |
115 Universe::heap()->permanent_capacity() / HWperKB); | |
115 | 116 |
116 fprintf(_log_fp, "%6ld,", CodeCache::capacity() / K); | 117 fprintf(_log_fp, UINTX_FORMAT_W(6) ",", CodeCache::capacity() / K); |
117 | 118 |
118 fprintf(_log_fp, "%6ld,%6ld,%6ld\n", | 119 fprintf(_log_fp, UINTX_FORMAT_W(6) "," UINTX_FORMAT_W(6) ",%6ld\n", |
119 handles_memory_usage / K, | 120 handles_memory_usage / K, |
120 resource_memory_usage / K, | 121 resource_memory_usage / K, |
121 OopMapCache::memory_usage() / K); | 122 OopMapCache::memory_usage() / K); |
122 fflush(_log_fp); | 123 fflush(_log_fp); |
123 } | 124 } |
124 | 125 |
125 #endif | 126 #endif |