Mercurial > hg > truffle
diff src/share/vm/utilities/resourceHash.hpp @ 14518:d8041d695d19
Merged with jdk9/dev/hotspot changeset 3812c088b945
author | twisti |
---|---|
date | Tue, 11 Mar 2014 18:45:59 -0700 |
parents | bdd155477289 |
children | 3c6ae9109a86 4ca6dc0799b6 |
line wrap: on
line diff
--- a/src/share/vm/utilities/resourceHash.hpp Wed Mar 12 00:00:05 2014 +0100 +++ b/src/share/vm/utilities/resourceHash.hpp Tue Mar 11 18:45:59 2014 -0700 @@ -44,8 +44,12 @@ template< typename K, typename V, - typename ResourceHashtableFns<K>::hash_fn HASH = primitive_hash<K>, - typename ResourceHashtableFns<K>::equals_fn EQUALS = primitive_equals<K>, + // xlC does not compile this: + // http://stackoverflow.com/questions/8532961/template-argument-of-type-that-is-defined-by-inner-typedef-from-other-template-c + //typename ResourceHashtableFns<K>::hash_fn HASH = primitive_hash<K>, + //typename ResourceHashtableFns<K>::equals_fn EQUALS = primitive_equals<K>, + unsigned (*HASH) (K const&) = primitive_hash<K>, + bool (*EQUALS)(K const&, K const&) = primitive_equals<K>, unsigned SIZE = 256 > class ResourceHashtable : public ResourceObj {