Mercurial > hg > truffle
comparison src/share/vm/utilities/resourceHash.hpp @ 17812:a7d4d4655766
Merge
author | kvn |
---|---|
date | Wed, 26 Mar 2014 18:21:05 -0700 |
parents | bdd155477289 |
children | 3c6ae9109a86 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
17789:6b207d038106 | 17812:a7d4d4655766 |
---|---|
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 |