Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
19c6fdf
8376290: SocketChannel.finishConnect() contains confusing "getsockopt…
jaikiran Jan 29, 2026
06d1345
8373026: C2 SuperWord and Vector API: vector algorithms test and benc…
eme64 Jan 29, 2026
92072a9
8375747: ZGC: ZForwardingTest is unable to commit memory on Windows
stefank Jan 29, 2026
f9cc104
8376335: Convert PreservedMarks classes to use Atomic<T>
Jan 29, 2026
681e4ec
8376350: Convert ReferenceProcessorPhaseTimes to use Atomic<T>
Jan 29, 2026
f96974d
8373898: RepeatCompilation does not repeat compilation after bailout
marc-chevalier Jan 29, 2026
4884674
8374343: Fix SIGSEGV when lib/modules is unreadable
Jan 29, 2026
e85d5d7
8375010: C2 VectorAPI: assert(vbox->is_CheckCastPP()) failed: should …
Jan 29, 2026
9911959
8374755: ML-KEM's 12-bit decompression can be simplified on aarch64
ferakocz Jan 29, 2026
7c6c34e
8370502: C2: segfault while adding node to IGVN worklist
Jan 29, 2026
a54ff1b
8376523: Move interned strings into AOT heap roots array
iklam Jan 29, 2026
847b516
8373018: Update OpenSSL version to 3.5.4
Jan 29, 2026
69c868d
8376510: Raster.createBandedRaster(int, int, int, int, int[], int[], …
prrace Jan 29, 2026
9470aa3
8375011: OldJTable.java - NullPointerException when columnData is null
Jan 29, 2026
175bbb1
8375569: Store Java mirrors in AOT configuration file
iklam Jan 29, 2026
379dcb0
8365313: GTK LaF does not respect system color scheme with Gnome
Jan 30, 2026
9a10cce
8374506: Incorrect positioning of arrow icon in parent JMenu in Windo…
prsadhuk Jan 30, 2026
2953e0f
8371162: Compiler warns about implicit cast from long to int in shift…
archiecobbs Jan 30, 2026
9fef14a
8375571: Compiler crash when using record pattern matching with a gen…
lahodaj Jan 30, 2026
55375e9
8375573: JTable ignores setPreferredWidth during initial layout when …
prsadhuk Jan 30, 2026
e643726
8376604: C2: EA should assert is_oop_field for AddP with oop outs
shipilev Jan 30, 2026
42370e2
8376781: Problemlist compiler/longcountedloops/TestLoopNestTooManyTra…
mhaessig Jan 30, 2026
e3b5b26
8376287: Crashes when using -XX:ObjArrayMarkingStride=0
hgqxjj Jan 30, 2026
0a3809d
8375046: C2: Incremental inlining step asserts when processing empty …
shipilev Jan 30, 2026
df8c4d6
8373604: Operations on peer reset tokens are slow
djelinski Jan 30, 2026
96180b9
8376308: java/net/httpclient/CancelRequestTest.java fails intermitten…
dfuch Jan 30, 2026
c1c543c
8210336: DateTimeFormatter predefined formatters should support short…
naotoj Jan 30, 2026
673cd6e
8374449: Shenandoah: Leaf locks used by Shenandoah need lower ranks
Jan 30, 2026
ee60eff
8376038: Refactor java/sql tests to use JUnit
Jan 30, 2026
3a4277d
8374744: Enable dumping of APX EGPRs (R16–R31) in JVM fatal error logs
Jan 30, 2026
32e00ff
8375567: Remove AppContext usage from Swing Motif L&F classes
prrace Jan 30, 2026
9ef98a5
8376747: Remove AppContext from Swing LayoutStyle
prrace Jan 30, 2026
c62c82d
8376420: Remove AppContext from javax/swing/ImageIcon.java
prrace Jan 30, 2026
6ce2f3e
8376751: add preview project anchors to main-line ProblemList files
Jan 30, 2026
ca95e5f
8375580: Avoid using ArrayDeque in jdk.internal.loader.URLClassPath
Jan 31, 2026
f4765ab
8376755: Remove AppContext from Swing javax/swing/plaf/basic classes
prrace Feb 1, 2026
3a32757
8376572: RISC-V: Interpreter: Load array index as signed int
feilongjiang Feb 2, 2026
f8b0ff2
8376472: Shenandoah: Assembler store barriers read destination memory…
shipilev Feb 2, 2026
f22bc1c
8376131: Convert ContiguousSpace to use Atomic<T>
Feb 2, 2026
766e03b
8367993: G1: Speed up ConcurrentMark initialization
lkorinth Feb 2, 2026
1f3fd3d
8366659: ObjectMonitor::wait() liveness problem with a suspension req…
toxaart Feb 2, 2026
5e24860
8376115: G1: Convert G1CMRootRegions to use Atomic<T>
Feb 2, 2026
7ccf175
8371536: C2: VerifyIterativeGVN should assert on first detected failure
benoitmaillard Feb 2, 2026
90a43f8
8376325: [IR Framework] Detect and report overloads
marc-chevalier Feb 2, 2026
e370b8a
8376570: GrowableArray::remove_{till,range} should work on empty list
shipilev Feb 2, 2026
17f25b5
8375536: PPC64: Implement special MachNodes for floating point CMove
dbriemann Feb 2, 2026
176422b
8370519: C2: Hit MemLimit when running with +VerifyLoopOptimizations
rwestrel Feb 2, 2026
173c3f9
8376479: Http3 test server thread deadlock in ThrowingPublishersInReq…
djelinski Feb 2, 2026
b7128b7
8376357: Parallel: Convert MutableSpace classes to use Atomic<T>
Feb 2, 2026
903b3fe
8375438: G1: Convert G1HeapRegion related classes to use Atomic<T>
Feb 2, 2026
9871e2d
8375535: G1: Convert CardTableBarrierSet and subclasses to use Atomic<T>
Feb 2, 2026
70f4984
8375640: MinMaxIdentity test fails on some machines after 8373134
galderz Feb 2, 2026
b602498
8376126: G1: Convert remaining volatiles in G1ConcurrentMark to Atomi…
Feb 2, 2026
8023c41
8376703: Some coding in libjimage seems to be not called at all or no…
MBaesken Feb 2, 2026
5607a46
8376954: Typos in CharacterRangeInfo and AsynchronousServerSocketChannel
ky0n Feb 2, 2026
4db0f7f
8375057: Update HarfBuzz to 12.3.2
Feb 2, 2026
67079b1
8377000: [BACKOUT] JDK-8376126 G1: Convert remaining volatiles in G1C…
Feb 2, 2026
1cb4ef8
8376855: ASAN reports out-of-range read in strncmp in MethodHandles::…
Feb 2, 2026
caf1338
8376700: java/nio/file/DirectoryStream/SecureDS.java fails AtomicMove…
Feb 3, 2026
e21cb85
8370441: Remove unnecessary/confusing null check in Verifier::verify()
Arraying Feb 3, 2026
8e2bd92
8376970: Shenandoah: Verifier should do basic verification before tou…
shipilev Feb 3, 2026
692444f
8376969: Shenandoah: GC state getters should be inlineable
shipilev Feb 3, 2026
5fec0f3
8376585: bin/update_copyright_year.sh could allow updating a specifie…
lahodaj Feb 3, 2026
f43fbf0
8367332: Replace BlockTree tree logic with an intrusive red-black tree
caspernorrbin Feb 3, 2026
efa16e9
8170896: TEST_BUG: java/rmi/server/Unreferenced/leaseCheckInterval/Le…
jaikiran Feb 3, 2026
9c83dff
8376284: New test serviceability/sa/TestJhsdbJstackMixedCore.java fro…
YaSuenag Feb 3, 2026
88f538f
8376324: [IR Framework] Name methods in a CompileCommand-friendly way
marc-chevalier Feb 3, 2026
a5b4c07
8376889: Enhance JfrRecorder::on_create_vm_3() assert output
MBaesken Feb 3, 2026
69c3e27
8376410: G1: Task queue statistics not reset properly on mark abort
Feb 3, 2026
99bc983
8377015: ConnectionRefusedMessage::testFinishConnect test fails on AI…
jaikiran Feb 3, 2026
e51ccef
8347938: Add Support for the Latest ML-KEM and ML-DSA Private Key Enc…
wangweij Feb 3, 2026
58d2edb
8370688: java.util.jar.JarEntry.getCodeSigners() and getCertificates(…
koushikthirupattur Feb 3, 2026
5fea074
8376297: ArrayIndexOutOfBoundsException Not Documented for SinglePixe…
prrace Feb 3, 2026
f3c8502
8227493: Return a more useful error message from lookupAllHostAddr if…
jaikiran Feb 4, 2026
14a6e92
8376630: java/lang/ProcessBuilder/PipelineLeaksFD.java intermittent t…
Feb 4, 2026
443cd77
8376758: Fix -Wzero-as-null-pointer-constant warnings in AIX code
Feb 4, 2026
1069cce
8376684: Compile OpenJDK in headless mode without required X11 libraries
ThomasDevoogdt Feb 4, 2026
7e8fad6
8376760: VerifyJimage.java#compare intermittent failed with fastdebug
Feb 4, 2026
d67f72e
8377063: Add EchoPassword.java to manual group
myankelev Feb 4, 2026
b0829a5
8372948: Store end positions directly in JCTree
cushon Feb 4, 2026
3f3dcb7
8376810: Make Atomic<T> default constructor non-explicit
stefank Feb 4, 2026
651e01b
8369393: NMT: poison the malloc header and footer under ASAN build
Feb 4, 2026
c5e973e
8374622: StressIncrementalInlining should also randomize the processi…
marc-chevalier Feb 4, 2026
848171a
8374782: Parallel: Remove specialized objArray iteration code
Feb 4, 2026
13029e1
8372942: AArch64: Set JVM flags for Neoverse V3AE core
ruben-arm Feb 4, 2026
d7523ec
8376031: HttpsURLConnection.getServerCertificates() throws "java.lang…
dfuch Feb 4, 2026
84e8787
8367530: The exhaustiveness errors could be improved
lahodaj Feb 4, 2026
a181dd0
8376761: ARM32: Constant base assert after JDK-8373266
shipilev Feb 4, 2026
8ad91ac
8377141: G1: Remove unused local declaration in G1BarrierSetC2
albertnetymk Feb 4, 2026
2a7329e
8376645: Test java/net/httpclient/http3/H3IdleExceedsQuicIdleTimeout.…
vy Feb 4, 2026
d49e29a
8376405: Virtual thread crash: assert(!_current->is_suspended()) fail…
pchilano Feb 4, 2026
7922919
8340830: Console.readLine() and Console.printf() are mutually blocking
naotoj Feb 4, 2026
949370a
8376756: GenShen: Improve encapsulation of generational collection se…
Feb 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
177 changes: 100 additions & 77 deletions bin/update_copyright_year.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -f

#
# Copyright (c) 2010, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2010, 2026, 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
Expand All @@ -23,9 +23,13 @@
# questions.
#

# Script to update the Copyright YEAR range in Mercurial & Git sources.
# Script to update the Copyright YEAR range in Git sources.
# (Originally from xdono, Thanks!)

# To update Copyright years for changes in a specific branch,
# you use a command along these lines:
# $ git diff upstream/master...<branch-name> | lsdiff | cut -d '/' -f 2- | bash bin/update_copyright_year.sh -m -

#------------------------------------------------------------
copyright="Copyright"
copyright_symbol="(c)"
Expand All @@ -47,7 +51,7 @@ rm -f -r ${tmp}
mkdir -p ${tmp}
total=0

usage="Usage: `basename "$0"` [-c company] [-y year] [-h|f]"
usage="Usage: `basename "$0"` [-c company] [-y year] [-m file] [-h|f]"
Help()
{
# Display Help
Expand All @@ -65,15 +69,18 @@ Help()
echo "-b Specifies the base reference for change set lookup."
echo "-f Updates the copyright for all change sets in a given year,"
echo " as specified by -y. Overrides -b flag."
echo "-m Read the list of modified files from the given file,"
echo " use - to read from stdin"
echo "-h Print this help."
echo
}

full_year=false
base_reference=master
modified_files_origin="";

# Process options
while getopts "b:c:fhy:" option; do
while getopts "b:c:fhm:y:" option; do
case $option in
b) # supplied base reference
base_reference=${OPTARG}
Expand All @@ -91,6 +98,9 @@ while getopts "b:c:fhy:" option; do
y) # supplied company year
year=${OPTARG}
;;
m) # modified files will be read from the given origin
modified_files_origin="${OPTARG}"
;;
\?) # illegal option
echo "$usage"
exit 1
Expand All @@ -110,18 +120,10 @@ git status &> /dev/null && git_found=true
if [ "$git_found" != "true" ]; then
echo "Error: Please execute script from within a JDK git repository."
exit 1
else
echo "Using Git version control system"
vcs_status=(git ls-files -m)
if [ "$full_year" = "true" ]; then
vcs_list_changesets=(git log --no-merges --since="${year}-01-01T00:00:00Z" --until="${year}-12-31T23:59:59Z" --pretty=tformat:"%H")
else
vcs_list_changesets=(git log --no-merges "${base_reference}..HEAD" --since="${year}-01-01T00:00:00Z" --until="${year}-12-31T23:59:59Z" --pretty=tformat:"%H")
fi
vcs_changeset_message=(git log -1 --pretty=tformat:"%B") # followed by ${changeset}
vcs_changeset_files=(git diff-tree --no-commit-id --name-only -r) # followed by ${changeset}
fi

echo "Using Git version control system"

# Return true if it makes sense to edit this file
saneFileToCheck()
{
Expand Down Expand Up @@ -168,6 +170,25 @@ updateFile() # file
echo "${changed}"
}

# Update the copyright year on files sent in stdin
updateFiles() # stdin: list of files to update
{
count=0
fcount=0
while read i; do
fcount=`expr ${fcount} '+' 1`
if [ `updateFile "${i}"` = "true" ] ; then
count=`expr ${count} '+' 1`
fi
done
if [ ${count} -gt 0 ] ; then
printf " UPDATED year on %d of %d files.\n" ${count} ${fcount}
total=`expr ${total} '+' ${count}`
else
printf " None of the %d files were changed.\n" ${fcount}
fi
}

# Update the copyright year on all files changed by this changeset
updateChangesetFiles() # changeset
{
Expand All @@ -178,18 +199,7 @@ updateChangesetFiles() # changeset
| ${awk} -F' ' '{for(i=1;i<=NF;i++)print $i}' \
> ${files}
if [ -f "${files}" -a -s "${files}" ] ; then
fcount=`cat ${files}| wc -l`
for i in `cat ${files}` ; do
if [ `updateFile "${i}"` = "true" ] ; then
count=`expr ${count} '+' 1`
fi
done
if [ ${count} -gt 0 ] ; then
printf " UPDATED year on %d of %d files.\n" ${count} ${fcount}
total=`expr ${total} '+' ${count}`
else
printf " None of the %d files were changed.\n" ${fcount}
fi
cat ${files} | updateFiles
else
printf " ERROR: No files changed in the changeset? Must be a mistake.\n"
set -x
Expand All @@ -204,67 +214,80 @@ updateChangesetFiles() # changeset
}

# Check if repository is clean
vcs_status=(git ls-files -m)
previous=`"${vcs_status[@]}"|wc -l`
if [ ${previous} -ne 0 ] ; then
echo "WARNING: This repository contains previously edited working set files."
echo " ${vcs_status[*]} | wc -l = `"${vcs_status[@]}" | wc -l`"
fi

# Get all changesets this year
all_changesets=${tmp}/all_changesets
rm -f ${all_changesets}
"${vcs_list_changesets[@]}" > ${all_changesets}
if [ "x$modified_files_origin" != "x" ]; then
cat $modified_files_origin | updateFiles
else
# Get all changesets this year
if [ "$full_year" = "true" ]; then
vcs_list_changesets=(git log --no-merges --since="${year}-01-01T00:00:00Z" --until="${year}-12-31T23:59:59Z" --pretty=tformat:"%H")
else
vcs_list_changesets=(git log --no-merges "${base_reference}..HEAD" --since="${year}-01-01T00:00:00Z" --until="${year}-12-31T23:59:59Z" --pretty=tformat:"%H")
fi
vcs_changeset_message=(git log -1 --pretty=tformat:"%B") # followed by ${changeset}
vcs_changeset_files=(git diff-tree --no-commit-id --name-only -r) # followed by ${changeset}

# Check changeset to see if it is Copyright only changes, filter changesets
if [ -s ${all_changesets} ] ; then
echo "Changesets made in ${year}: `cat ${all_changesets} | wc -l`"
index=0
cat ${all_changesets} | while read changeset ; do
index=`expr ${index} '+' 1`
desc=${tmp}/desc.${changeset}
rm -f ${desc}
echo "------------------------------------------------"
"${vcs_changeset_message[@]}" "${changeset}" > ${desc}
printf "%d: %s\n%s\n" ${index} "${changeset}" "`cat ${desc}|head -1`"
if [ "${year}" = "2010" ] ; then
if cat ${desc} | grep -i -F "Added tag" > /dev/null ; then
printf " EXCLUDED tag changeset.\n"
elif cat ${desc} | grep -i -F rebrand > /dev/null ; then
printf " EXCLUDED rebrand changeset.\n"
elif cat ${desc} | grep -i -F copyright > /dev/null ; then
printf " EXCLUDED copyright changeset.\n"
else
updateChangesetFiles ${changeset}
fi
else
if cat ${desc} | grep -i -F "Added tag" > /dev/null ; then
printf " EXCLUDED tag changeset.\n"
elif cat ${desc} | grep -i -F "copyright year" > /dev/null ; then
printf " EXCLUDED copyright year changeset.\n"
all_changesets=${tmp}/all_changesets
rm -f ${all_changesets}
"${vcs_list_changesets[@]}" > ${all_changesets}

# Check changeset to see if it is Copyright only changes, filter changesets
if [ -s ${all_changesets} ] ; then
echo "Changesets made in ${year}: `cat ${all_changesets} | wc -l`"
index=0
cat ${all_changesets} | while read changeset ; do
index=`expr ${index} '+' 1`
desc=${tmp}/desc.${changeset}
rm -f ${desc}
echo "------------------------------------------------"
"${vcs_changeset_message[@]}" "${changeset}" > ${desc}
printf "%d: %s\n%s\n" ${index} "${changeset}" "`cat ${desc}|head -1`"
if [ "${year}" = "2010" ] ; then
if cat ${desc} | grep -i -F "Added tag" > /dev/null ; then
printf " EXCLUDED tag changeset.\n"
elif cat ${desc} | grep -i -F rebrand > /dev/null ; then
printf " EXCLUDED rebrand changeset.\n"
elif cat ${desc} | grep -i -F copyright > /dev/null ; then
printf " EXCLUDED copyright changeset.\n"
else
updateChangesetFiles ${changeset}
fi
else
updateChangesetFiles ${changeset}
if cat ${desc} | grep -i -F "Added tag" > /dev/null ; then
printf " EXCLUDED tag changeset.\n"
elif cat ${desc} | grep -i -F "copyright year" > /dev/null ; then
printf " EXCLUDED copyright year changeset.\n"
else
updateChangesetFiles ${changeset}
fi
fi
fi
rm -f ${desc}
done
fi
rm -f ${desc}
done
fi

if [ ${total} -gt 0 ] ; then
echo "---------------------------------------------"
echo "Updated the copyright year on a total of ${total} files."
if [ ${previous} -eq 0 ] ; then
echo "This count should match the count of modified files in the repository: ${vcs_status[*]}"
else
echo "WARNING: This repository contained previously edited working set files."
fi
echo " ${vcs_status[*]} | wc -l = `"${vcs_status[@]}" | wc -l`"
else
echo "---------------------------------------------"
echo "No files were changed"
if [ ${previous} -ne 0 ] ; then
echo "WARNING: This repository contained previously edited working set files."
fi
echo " ${vcs_status[*]} | wc -l = `"${vcs_status[@]}" | wc -l`"
if [ ${total} -gt 0 ] ; then
echo "---------------------------------------------"
echo "Updated the copyright year on a total of ${total} files."
if [ ${previous} -eq 0 ] ; then
echo "This count should match the count of modified files in the repository: ${vcs_status[*]}"
else
echo "WARNING: This repository contained previously edited working set files."
fi
echo " ${vcs_status[*]} | wc -l = `"${vcs_status[@]}" | wc -l`"
else
echo "---------------------------------------------"
echo "No files were changed"
if [ ${previous} -ne 0 ] ; then
echo "WARNING: This repository contained previously edited working set files."
fi
echo " ${vcs_status[*]} | wc -l = `"${vcs_status[@]}" | wc -l`"
fi
fi

# Cleanup
Expand Down
7 changes: 3 additions & 4 deletions doc/building.html
Original file line number Diff line number Diff line change
Expand Up @@ -1385,10 +1385,9 @@ <h4 id="alsa-1">ALSA</h4>
can specify it by <code>--with-alsa</code>.</p></li>
</ul>
<h4 id="x11-1">X11</h4>
<p>You will need X11 libraries suitable for your <em>target</em> system.
In most cases, using Debian's pre-built libraries work fine.</p>
<p>Note that X11 is needed even if you only want to build a headless
JDK.</p>
<p>When not building a headless JDK, you will need X11 libraries
suitable for your <em>target</em> system. In most cases, using Debian's
pre-built libraries work fine.</p>
<ul>
<li><p>Go to <a href="https://www.debian.org/distrib/packages">Debian
Package Search</a>, search for the following packages for your
Expand Down
6 changes: 2 additions & 4 deletions doc/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -1178,10 +1178,8 @@ Note that alsa is needed even if you only want to build a headless JDK.

#### X11

You will need X11 libraries suitable for your *target* system. In most cases,
using Debian's pre-built libraries work fine.

Note that X11 is needed even if you only want to build a headless JDK.
When not building a headless JDK, you will need X11 libraries suitable for your
*target* system. In most cases, using Debian's pre-built libraries work fine.

* Go to [Debian Package Search](https://www.debian.org/distrib/packages),
search for the following packages for your *target* system, and download them
Expand Down
6 changes: 5 additions & 1 deletion make/RunTests.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2026, 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
Expand Down Expand Up @@ -972,6 +972,10 @@ define SetupRunJtregTestBody
JTREG_AUTO_PROBLEM_LISTS += ProblemList-enable-preview.txt
endif

ifneq ($$(findstring -XX:+UseCompactObjectHeaders, $$(JTREG_ALL_OPTIONS)), )
JTREG_AUTO_PROBLEM_LISTS += ProblemList-coh.txt
endif


ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
# Accept both absolute paths as well as relative to the current test root.
Expand Down
8 changes: 4 additions & 4 deletions make/autoconf/libraries.m4
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ m4_include([lib-tests.m4])
AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
[
# Check if X11 is needed
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
# No X11 support on windows or macosx
if test "x$OPENJDK_TARGET_OS" = xwindows ||
test "x$OPENJDK_TARGET_OS" = xmacosx ||
test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
NEEDS_LIB_X11=false
else
# All other instances need X11, even if building headless only, libawt still
# needs X11 headers.
# All other instances need X11 for libawt.
NEEDS_LIB_X11=true
fi
Expand Down
16 changes: 14 additions & 2 deletions make/modules/java.desktop/lib/AwtLibraries.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ LIBAWT_EXTRA_HEADER_DIRS := \

LIBAWT_CFLAGS := -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES -DMLIB_NO_LIBSUNMATH

ifeq ($(ENABLE_HEADLESS_ONLY), true)
LIBAWT_CFLAGS += -DHEADLESS
endif

ifeq ($(call isTargetOs, windows), true)
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE -DMLIB_OS64BIT
LIBAWT_RCFLAGS ?= -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
Expand Down Expand Up @@ -167,11 +171,18 @@ ifeq ($(call isTargetOs, windows macosx), false)
$(TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \
#

LIBAWT_HEADLESS_EXCLUDE_FILES := \
GLXGraphicsConfig.c \
GLXSurfaceData.c \
X11PMBlitLoops.c \
X11Renderer.c \
X11SurfaceData.c \
#

LIBAWT_HEADLESS_EXTRA_HEADER_DIRS := \
$(LIBAWT_DEFAULT_HEADER_DIRS) \
common/awt/debug \
common/font \
common/java2d/opengl \
java.base:libjvm \
#

Expand All @@ -191,7 +202,8 @@ ifeq ($(call isTargetOs, windows macosx), false)
$(eval $(call SetupJdkLibrary, BUILD_LIBAWT_HEADLESS, \
NAME := awt_headless, \
EXTRA_SRC := $(LIBAWT_HEADLESS_EXTRA_SRC), \
EXCLUDES := medialib, \
EXCLUDES := medialib opengl, \
EXCLUDE_FILES := $(LIBAWT_HEADLESS_EXCLUDE_FILES), \
ONLY_EXPORTED := $(LIBAWT_HEADLESS_ONLY_EXPORTED), \
OPTIMIZATION := LOW, \
CFLAGS := -DHEADLESS=true $(CUPS_CFLAGS) $(FONTCONFIG_CFLAGS) \
Expand Down
Loading
Loading