# HG changeset patch # User dbuck # Date 1553259906 14400 # Node ID 931247e9085786b15cc54f164ac07afe8dfcd79c # Parent b9cd87da32112e013b2a0fa0d3e2d741d90f102c 8217564: idempotent protection missing in crc32c.h Summary: added include guard to crc32c.h Reviewed-by: dcubed diff -r b9cd87da3211 -r 931247e90857 src/hotspot/cpu/x86/crc32c.h --- a/src/hotspot/cpu/x86/crc32c.h Fri Mar 22 12:49:33 2019 +0100 +++ b/src/hotspot/cpu/x86/crc32c.h Fri Mar 22 09:05:06 2019 -0400 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. +* Copyright (c) 2015, 2019, 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 @@ -22,6 +22,9 @@ * */ +#ifndef CPU_X86_CRC32C_H +#define CPU_X86_CRC32C_H + enum { // S. Gueron / Information Processing Letters 112 (2012) 184 // shows than anything above 6K and below 32K is a good choice @@ -64,3 +67,5 @@ // a) constants table generation (hotspot/src/cpu/x86/vm/stubRoutines_x86.cpp) // b) constant fetch from that table (macroAssembler_x86.cpp) // c) unrolled for loop (macroAssembler_x86.cpp) + +#endif /* !CPU_X86_CRC32C_H */