8151269: [TEST] add test covering getSource() method for multiresolution image
Reviewed-by: alexsch, serb
## Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.# Copyright (c) 2012, 2015 SAP SE. 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.# ##------------------------------------------------------------------------# CC, CXX & AS# Set compiler explicitlyCXX = $(COMPILER_PATH)xlC_rCC = $(COMPILER_PATH)xlc_rHOSTCXX = $(CXX)HOSTCC = $(CC)AS = $(CC) -c# get xlc version which comes as VV.RR.MMMM.LLLL where 'VV' is the version,# 'RR' is the release, 'MMMM' is the modification and 'LLLL' is the level.# We only use 'VV.RR.LLLL' to avoid integer overflows in bash when comparing# the version numbers (some shells only support 32-bit integer compares!).CXX_VERSION := $(shell $(CXX) -qversion 2>&1 | \ sed -n 's/.*Version: \([0-9]\{2\}\).\([0-9]\{2\}\).[0-9]\{4\}.\([0-9]\{4\}\)/\1\2\3/p')# xlc 08.00.0000.0023 and higher supports -qtune=balancedCXX_SUPPORTS_BALANCED_TUNING := $(shell if [ $(CXX_VERSION) -ge 08000023 ] ; then echo "true" ; fi)# xlc 10.01 is used with aggressive optimizations to boost performanceCXX_IS_V10 := $(shell if [ $(CXX_VERSION) -ge 10010000 ] ; then echo "true" ; fi)# check for precompiled headers support# Switch off the precompiled header support. Neither xlC 8.0 nor xlC 10.0# support precompiled headers. Both "understand" the command line switches "-qusepcomp" and # "-qgenpcomp" but when we specify them the following message is printed:# "1506-755 (W) The -qusepcomp option is not supported in this release."USE_PRECOMPILED_HEADER = 0ifneq ($(USE_PRECOMPILED_HEADER),0)PRECOMPILED_HEADER_DIR=.PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled/precompiled.hppPRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gchendif#------------------------------------------------------------------------# Compiler flags# position-independent codePICFLAG = -qpic=largeVM_PICFLAG/LIBJVM = $(PICFLAG)VM_PICFLAG/AOUT =VM_PICFLAG = $(VM_PICFLAG/$(LINK_INTO))CFLAGS += $(VM_PICFLAG)CFLAGS += -qnorttiCFLAGS += -qnoeh# for compiler-level tlsCFLAGS += -qtls=defaultCFLAGS += -D_REENTRANT# no xlc counterpart for -fcheck-new# CFLAGS += -fcheck-new# We need to define this on the command line if we want to use the the# predefined format specifiers from "inttypes.h". Otherwise system headrs# can indirectly include inttypes.h before we define __STDC_FORMAT_MACROS# in globalDefinitions.hppCFLAGS += -D__STDC_FORMAT_MACROSARCHFLAG = -q64CFLAGS += $(ARCHFLAG)AOUT_FLAGS += $(ARCHFLAG)LFLAGS += $(ARCHFLAG)ASFLAGS += $(ARCHFLAG)# Use C++ Interpreterifdef CC_INTERP CFLAGS += -DCC_INTERPendif# Keep temporary files (.ii, .s)# no counterpart on xlc for -save-temps, -pipe# Compiler warnings are treated as errors# Do not treat warnings as errors# WARNINGS_ARE_ERRORS = -Werror# Except for a few acceptable ones# ACCEPTABLE_WARNINGS = -Wpointer-arith -Wconversion -Wsign-compare# CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(ACCEPTABLE_WARNINGS)CFLAGS_WARN/COMMON = CFLAGS_WARN/DEFAULT = $(CFLAGS_WARN/COMMON) $(EXTRA_WARNINGS)# Special casesCFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) # The flags to use for an optimized buildOPT_CFLAGS += -O3# Hotspot uses very unstrict aliasing turn this optimization offOPT_CFLAGS += -qalias=noansiOPT_CFLAGS/NOOPT=-qnooptDEPFLAGS = -qmakedep=gcc -MF $(DEP_DIR)/$(@:%=%.d)#------------------------------------------------------------------------# Linker flags# statically link libstdc++.so, work with gcc but ignored by g++STATIC_STDCXX = -Wl,-lC_r# Enable linker optimization# no counterpart on xlc for this # LFLAGS += -Xlinker -O1# Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.# MAPFLAG = -Xlinker --version-script=FILENAME# Build shared librarySHARED_FLAG = -q64 -b64 -bexpall -G -bnoentry -qmkshrobj -brtl -bnolibpath -bernotok#------------------------------------------------------------------------# Debug flags# Always compile with '-g' to get symbols in the stacktraces in the hs_err fileDEBUG_CFLAGS += -gFASTDEBUG_CFLAGS += -gOPT_CFLAGS += -g# DEBUG_BINARIES overrides everything, use full -g debug informationifeq ($(DEBUG_BINARIES), true) DEBUG_CFLAGS = -g CFLAGS += $(DEBUG_CFLAGS)endif# If we are building HEADLESS, pass on to VM# so it can set the java.awt.headless propertyifdef HEADLESSCFLAGS += -DHEADLESSendif# We are building Embedded for a small device# favor code space over speedifdef MINIMIZE_RAM_USAGECFLAGS += -DMINIMIZE_RAM_USAGEendififdef CROSS_COMPILE_ARCH STRIP = $(ALT_COMPILER_PATH)/stripelse STRIP = stripendif