Mercurial > hg > truffle
comparison src/share/vm/services/management.cpp @ 489:2494ab195856
6653214: MemoryPoolMXBean.setUsageThreshold() does not support large heap sizes.
Reviewed-by: ysr, mchung
author | swamyv |
---|---|
date | Mon, 15 Dec 2008 13:58:57 -0800 |
parents | d28aa69f0959 |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
487:80206b8a9128 | 489:2494ab195856 |
---|---|
692 THROW_MSG_(vmSymbols::java_lang_IllegalArgumentException(), | 692 THROW_MSG_(vmSymbols::java_lang_IllegalArgumentException(), |
693 "Invalid threshold value", | 693 "Invalid threshold value", |
694 -1); | 694 -1); |
695 } | 695 } |
696 | 696 |
697 if (threshold > max_intx) { | 697 if ((size_t)threshold > max_uintx) { |
698 THROW_MSG_(vmSymbols::java_lang_IllegalArgumentException(), | 698 stringStream st; |
699 "Invalid threshold value > max value of size_t", | 699 st.print("Invalid valid threshold value. Threshold value (" UINT64_FORMAT ") > max value of size_t (" SIZE_FORMAT ")", (size_t)threshold, max_uintx); |
700 -1); | 700 THROW_MSG_(vmSymbols::java_lang_IllegalArgumentException(), st.as_string(), -1); |
701 } | 701 } |
702 | 702 |
703 MemoryPool* pool = get_memory_pool_from_jobject(obj, CHECK_(0L)); | 703 MemoryPool* pool = get_memory_pool_from_jobject(obj, CHECK_(0L)); |
704 assert(pool != NULL, "MemoryPool should exist"); | 704 assert(pool != NULL, "MemoryPool should exist"); |
705 | 705 |