Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/resourceHash.hpp @ 18041:52b4284cb496
Merge with jdk8u20-b26
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 15 Oct 2014 16:02:50 +0200 |
parents | 4ca6dc0799b6 |
children |
comparison
equal
deleted
inserted
replaced
17606:45d7b2c7029d | 18041:52b4284cb496 |
---|---|
42 return k0 == k1; | 42 return k0 == k1; |
43 } | 43 } |
44 | 44 |
45 template< | 45 template< |
46 typename K, typename V, | 46 typename K, typename V, |
47 typename ResourceHashtableFns<K>::hash_fn HASH = primitive_hash<K>, | 47 // xlC does not compile this: |
48 typename ResourceHashtableFns<K>::equals_fn EQUALS = primitive_equals<K>, | 48 // http://stackoverflow.com/questions/8532961/template-argument-of-type-that-is-defined-by-inner-typedef-from-other-template-c |
49 //typename ResourceHashtableFns<K>::hash_fn HASH = primitive_hash<K>, | |
50 //typename ResourceHashtableFns<K>::equals_fn EQUALS = primitive_equals<K>, | |
51 unsigned (*HASH) (K const&) = primitive_hash<K>, | |
52 bool (*EQUALS)(K const&, K const&) = primitive_equals<K>, | |
49 unsigned SIZE = 256 | 53 unsigned SIZE = 256 |
50 > | 54 > |
51 class ResourceHashtable : public ResourceObj { | 55 class ResourceHashtable : public ResourceObj { |
52 private: | 56 private: |
53 | 57 |