Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 23831:d2dd79a4fd69
8133023: ParallelGCThreads is not calculated correctly
Reviewed-by: kbarrett, tschatzl
author | poonam |
---|---|
date | Tue, 15 Mar 2016 17:39:56 -0700 |
parents | f79d8e8caecb |
children | f13e777eb255 |
comparison
equal
deleted
inserted
replaced
23825:0cd040567d60 | 23831:d2dd79a4fd69 |
---|---|
38 int VM_Version::_features = VM_Version::unknown_m; | 38 int VM_Version::_features = VM_Version::unknown_m; |
39 const char* VM_Version::_features_str = ""; | 39 const char* VM_Version::_features_str = ""; |
40 unsigned int VM_Version::_L2_data_cache_line_size = 0; | 40 unsigned int VM_Version::_L2_data_cache_line_size = 0; |
41 | 41 |
42 void VM_Version::initialize() { | 42 void VM_Version::initialize() { |
43 _features = determine_features(); | 43 |
44 assert(_features != VM_Version::unknown_m, "System pre-initialization is not complete."); | |
45 guarantee(VM_Version::has_v9(), "only SPARC v9 is supported"); | |
46 | |
44 PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes(); | 47 PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes(); |
45 PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes(); | 48 PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes(); |
46 PrefetchFieldsAhead = prefetch_fields_ahead(); | 49 PrefetchFieldsAhead = prefetch_fields_ahead(); |
47 | 50 |
48 assert(0 <= AllocatePrefetchInstr && AllocatePrefetchInstr <= 1, "invalid value"); | 51 assert(0 <= AllocatePrefetchInstr && AllocatePrefetchInstr <= 1, "invalid value"); |
73 | 76 |
74 if (AllocatePrefetchStyle == 3 && !has_blk_init()) { | 77 if (AllocatePrefetchStyle == 3 && !has_blk_init()) { |
75 warning("BIS instructions are not available on this CPU"); | 78 warning("BIS instructions are not available on this CPU"); |
76 FLAG_SET_DEFAULT(AllocatePrefetchStyle, 1); | 79 FLAG_SET_DEFAULT(AllocatePrefetchStyle, 1); |
77 } | 80 } |
78 | |
79 guarantee(VM_Version::has_v9(), "only SPARC v9 is supported"); | |
80 | 81 |
81 assert(ArraycopySrcPrefetchDistance < 4096, "invalid value"); | 82 assert(ArraycopySrcPrefetchDistance < 4096, "invalid value"); |
82 if (ArraycopySrcPrefetchDistance >= 4096) | 83 if (ArraycopySrcPrefetchDistance >= 4096) |
83 ArraycopySrcPrefetchDistance = 4064; | 84 ArraycopySrcPrefetchDistance = 4064; |
84 assert(ArraycopyDstPrefetchDistance < 4096, "invalid value"); | 85 assert(ArraycopyDstPrefetchDistance < 4096, "invalid value"); |