resources/memory/openjdk_memory_heuristic_factory.rb
def permgen_or_metaspace(version)
      if version == '1.8.0'
        'metaspace'
      else
        'permgen'
      end
    end
# Returns a memory heuristics instance for the given version of OpenJDK.
#
# @param [Hash<String, String>] sizes any sizes specified by the user
# @param [Hash<String, Numeric>] heuristics the memory heuristics specified by the user
# @param [LibertyBuildpack::Util::TokenizedVersion] version the version of OpenJDK
# @return [WeightBalancingMemoryHeuristic] the memory heuristics instance
Returns a memory heuristics instance for the given version of OpenJDK.
Returns a memory heuristics instance for the given version of OpenJDK .
def permgen_or_metaspace(version)
      if version == '1.8.0'
        'metaspace'
      else
        'permgen'
      end
    end
def permgen_or_metaspace ( version ) if version == '1.8.0' 'metaspace' else 'permgen' end end
Returns a memory heuristics instance for the given version of OpenJDK.
Returns a memory heuristics instance for the given version of OpenJDK .
the memory heuristics instance
the memory heuristics instance
WeightBalancingMemoryHeuristic
version
version the version of OpenJDK
version the version of OpenJDK