make/scripts/compare_exceptions.sh.incl
author eosterlund
Tue, 02 Jul 2019 11:33:01 +0200
changeset 55562 2f464d628942
parent 55018 ecb7b9a98f0e
permissions -rw-r--r--
8219687: G1 asserts nmethod should not be unloaded during parallel code cache unloading Reviewed-by: tschatzl, kvn

#!/bin/bash
#
# Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#

# This script is not to be run as stand-alone, it should be included from
# compare.sh.

##########################################################################################
# Check that we are run via inclusion from compare.sh and not as stand-alone.
if [ -z "$COMPARE_EXCEPTIONS_INCLUDE" ]; then
    echo "Error: This script should not be run as stand-alone. It is included by compare.sh"
    exit 1
fi

##########################################################################################
# Diff exceptions

if [ "$OPENJDK_TARGET_OS" = "linux" ]; then
  ACCEPTED_BIN_DIFF="
      ./lib/server/libjvm.so
      ./hotspot/gtest/server/libjvm.so
      "
  STRIP_BEFORE_COMPARE="
      ./hotspot/gtest/server/libjvm.so
      "
elif [ "$OPENJDK_TARGET_OS" = "solaris" ]; then
  SKIP_BIN_DIFF="true"
  SKIP_FULLDUMP_DIFF="true"
  MAX_KNOWN_DIS_DIFF_SIZE="3000"
  SORT_SYMBOLS="
      ./lib/libfontmanager.so
      ./lib/libjimage.so
      ./lib/libunpack.so
      ./lib/server/libjvm.so
      ./bin/unpack200
      ./hotspot/gtest/server/libjvm.so
      "
  KNOWN_DIS_DIFF="
      ./lib/libfontmanager.so
      ./lib/libsaproc.so
  "
  STRIP_TESTS_BEFORE_COMPARE="true"
elif [ "$OPENJDK_TARGET_OS" = "windows" ]; then
  SKIP_BIN_DIFF="true"
  SKIP_FULLDUMP_DIFF="true"
  ACCEPTED_JARZIP_CONTENTS="
      /modules_libs/java.security.jgss/w2k_lsa_auth.pdb
      /modules_libs/java.security.jgss/w2k_lsa_auth.map
      /modules_libs/java.security.jgss/w2k_lsa_auth.dll
      "
elif [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
  ACCEPTED_BIN_DIFF="
      ./lib/libawt_lwawt.dylib
      ./lib/libosxapp.dylib
      ./lib/libosxui.dylib
      ./lib/server/libjvm.dylib
      ./hotspot/gtest/server/libjvm.dylib
      "
  STRIP_TESTS_BEFORE_COMPARE="true"
fi