Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/utilities/resourceHash.hpp Thu Oct 16 10:21:29 2014 +0200 +++ b/src/share/vm/utilities/resourceHash.hpp Wed Oct 15 16:02:50 2014 +0200 @@ -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 {