make/hotspot_distro

Wed, 18 Aug 2010 10:59:06 -0700

author
johnc
date
Wed, 18 Aug 2010 10:59:06 -0700
changeset 2076
413ad0331a0c
parent 1907
c18cbe5936b8
child 2384
0a8e0d4345b3
permissions
-rw-r--r--

6977924: Changes for 6975078 produce build error with certain gcc versions
Summary: The changes introduced for 6975078 assign badHeapOopVal to the _allocation field in the ResourceObj class. In 32 bit linux builds with certain versions of gcc this assignment will be flagged as an error while compiling allocation.cpp. In 32 bit builds the constant value badHeapOopVal (which is cast to an intptr_t) is negative. The _allocation field is typed as an unsigned intptr_t and gcc catches this as an error.
Reviewed-by: jcoomes, ysr, phh

trims@821 1 #
trims@1907 2 # Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved.
kamg@720 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
kamg@720 4 #
kamg@720 5 # This code is free software; you can redistribute it and/or modify it
kamg@720 6 # under the terms of the GNU General Public License version 2 only, as
kamg@720 7 # published by the Free Software Foundation.
kamg@720 8 #
kamg@720 9 # This code is distributed in the hope that it will be useful, but WITHOUT
kamg@720 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
kamg@720 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kamg@720 12 # version 2 for more details (a copy is included in the LICENSE file that
kamg@720 13 # accompanied this code).
kamg@720 14 #
kamg@720 15 # You should have received a copy of the GNU General Public License version
kamg@720 16 # 2 along with this work; if not, write to the Free Software Foundation,
kamg@720 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
kamg@720 18 #
trims@1907 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 # or visit www.oracle.com if you need additional information or have any
trims@1907 21 # questions.
trims@821 22 #
kamg@526 23
kamg@526 24 #
kamg@526 25 # This file format must remain compatible with both
kamg@526 26 # GNU Makefile and Microsoft nmake formats.
kamg@526 27 #
kamg@526 28
kamg@526 29 # Don't put quotes (fail windows build).
kamg@526 30 HOTSPOT_VM_DISTRO=Java HotSpot(TM)
kamg@1854 31 COMPANY_NAME=Oracle Corporation
kamg@526 32 PRODUCT_NAME=Java(TM) Platform SE

mercurial