Skip to content

Commit

Permalink
Merge pull request #74 from Accelerator1996/master
Browse files Browse the repository at this point in the history
Merge tag jdk8u312-ga
  • Loading branch information
joeyleeeeeee97 authored Nov 2, 2021
2 parents dae4180 + af1a1ae commit 06faeab
Show file tree
Hide file tree
Showing 149 changed files with 5,338 additions and 2,608 deletions.
9 changes: 9 additions & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -1089,5 +1089,14 @@ d103481ecd91690051bbd06e4eb4d3f3b4938dfc jdk8u292-b08
0056610eefad4cffedcc1443efdff8145d2a0135 jdk8u302-b03
6a07e2cb5bdb7a4983ee89e7ed715435c722d9b3 jdk8u302-b04
d727e88aa12a29c4a217d774d72cbfeb48648f09 jdk8u302-b05
d727e88aa12a29c4a217d774d72cbfeb48648f09 jdk8u312-b00
80412c5440236d4cd3f671690dd4d4d46c12e691 jdk8u302-b06
7762468ad65060d9445413975cd7142f89792bbd jdk8u302-b07
06b4012edc724ba45b1c1a8593d00ca989baa284 jdk8u302-b08
06b4012edc724ba45b1c1a8593d00ca989baa284 jdk8u302-ga
52d602b87c1d0ff8325e2e8b58fcdca1d8c302a5 jdk8u312-b01
cc5ddc374b2432b666120e5140dfc70b891a626a jdk8u312-b02
61729ad5f50ea3875c9774cb7610f3b725f12670 jdk8u312-b03
40bb77912d3f411365573c280c43c257a44948a9 jdk8u312-b04
991bbb9501e2b295a17e1072292df75c5e814836 jdk8u312-b05
ece88aba26eb66ce321e0da344ce2bb148ec9d1e jdk8u312-b06
90 changes: 63 additions & 27 deletions THIRD_PARTY_README
Original file line number Diff line number Diff line change
Expand Up @@ -3243,39 +3243,75 @@ included with JRE 8, JDK 8, and OpenJDK 8.
-------------------------------------------------------------------------------

%% This notice is provided with respect to OASIS PKCS #11 Cryptographic Token
Interface v2.40, which may be included with JRE 8, JDK 8, and OpenJDK 8.
Interface v3.0, which may be included with JRE 8, JDK 8, and OpenJDK 8.

--- begin of LICENSE ---

Copyright (c) OASIS Open 2016. All Rights Reserved.
Copyright © OASIS Open 2020. All Rights Reserved.

All capitalized terms in the following text have the meanings assigned to them
in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The
full Policy may be found at the OASIS website:
All capitalized terms in the following text have the meanings
assigned to them in the OASIS Intellectual Property Rights Policy (the
"OASIS IPR Policy"). The full Policy may be found at the OASIS website:
[http://www.oasis-open.org/policies-guidelines/ipr]

This document and translations of it may be copied and furnished to others, and
derivative works that comment on or otherwise explain it or assist in its
implementation may be prepared, copied, published, and distributed, in whole or
in part, without restriction of any kind, provided that the above copyright
notice and this section are included on all such copies and derivative works.
However, this document itself may not be modified in any way, including by
removing the copyright notice or references to OASIS, except as needed for the
purpose of developing any document or deliverable produced by an OASIS
Technical Committee (in which case the rules applicable to copyrights, as set
forth in the OASIS IPR Policy, must be followed) or as required to translate it
into languages other than English.

The limited permissions granted above are perpetual and will not be revoked by
OASIS or its successors or assigns.

This document and the information contained herein is provided on an "AS IS"
basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT
INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE. OASIS AND ITS MEMBERS WILL NOT BE LIABLE FOR
ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE
OF THIS DOCUMENT OR ANY PART THEREOF.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it or
assist in its implementation may be prepared, copied, published, and
distributed, in whole or in part, without restriction of any kind,
provided that the above copyright notice and this section are included
on all such copies and derivative works. However, this document itself
may not be modified in any way, including by removing the copyright
notice or references to OASIS, except as needed for the purpose of
developing any document or deliverable produced by an OASIS Technical
Committee (in which case the rules applicable to copyrights, as set
forth in the OASIS IPR Policy, must be followed) or as required to
translate it into languages other than English.

The limited permissions granted above are perpetual and will not be
revoked by OASIS or its successors or assigns.

This document and the information contained herein is provided on an
"AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. OASIS
AND ITS MEMBERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THIS DOCUMENT OR ANY
PART THEREOF.

[OASIS requests that any OASIS Party or any other party that
believes it has patent claims that would necessarily be infringed by
implementations of this OASIS Standards Final Deliverable, to notify
OASIS TC Administrator and provide an indication of its willingness to
grant patent licenses to such patent claims in a manner consistent with
the IPR Mode of the OASIS Technical Committee that produced this
deliverable.]

[OASIS invites any party to contact the OASIS TC Administrator if it
is aware of a claim of ownership of any patent claims that would
necessarily be infringed by implementations of this OASIS Standards
Final Deliverable by a patent holder that is not willing to provide a
license to such patent claims in a manner consistent with the IPR Mode
of the OASIS Technical Committee that produced this OASIS Standards
Final Deliverable. OASIS may include such claims on its website, but
disclaims any obligation to do so.]

[OASIS takes no position regarding the validity or scope of any
intellectual property or other rights that might be claimed to pertain
to the implementation or use of the technology described in this OASIS
Standards Final Deliverable or the extent to which any license under
such rights might or might not be available; neither does it represent
that it has made any effort to identify any such rights. Information on
OASIS' procedures with respect to rights in any document or deliverable
produced by an OASIS Technical Committee can be found on the OASIS
website. Copies of claims of rights made available for publication and
any assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this OASIS Standards
Final Deliverable, can be obtained from the OASIS TC Administrator.
OASIS makes no representation that any information or list of
intellectual property rights will at any time be complete, or that any
claims in such list are, in fact, Essential Claims.]

--- end of LICENSE ---

Expand Down
1 change: 0 additions & 1 deletion make/mapfiles/libawt/mapfile-mawt-vers
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ SUNWprivate_1.1 {
Java_sun_java2d_opengl_GLXGraphicsConfig_initConfig;
Java_sun_java2d_opengl_GLXGraphicsConfig_getOGLCapabilities;
Java_sun_java2d_opengl_GLXSurfaceData_initOps;
Java_sun_java2d_opengl_GLXSurfaceData_initPbuffer;

Java_sun_print_CUPSPrinter_initIDs;
Java_sun_print_CUPSPrinter_getCupsServer;
Expand Down
1 change: 0 additions & 1 deletion make/mapfiles/libawt_xawt/mapfile-vers
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ SUNWprivate_1.1 {
Java_sun_java2d_opengl_GLXGraphicsConfig_initConfig;
Java_sun_java2d_opengl_GLXGraphicsConfig_getOGLCapabilities;
Java_sun_java2d_opengl_GLXSurfaceData_initOps;
Java_sun_java2d_opengl_GLXSurfaceData_initPbuffer;

Java_sun_java2d_x11_X11PMBlitBgLoops_nativeBlitBg;
Java_sun_java2d_x11_X11PMBlitLoops_nativeBlit;
Expand Down
14 changes: 8 additions & 6 deletions make/mapfiles/libmanagement/mapfile-vers
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,21 @@

SUNWprivate_1.1 {
global:
Java_sun_management_OperatingSystemImpl_getCommittedVirtualMemorySize;
Java_sun_management_OperatingSystemImpl_getCommittedVirtualMemorySize0;
Java_sun_management_OperatingSystemImpl_getFreePhysicalMemorySize0;
Java_sun_management_OperatingSystemImpl_getFreeSwapSpaceSize0;
Java_sun_management_OperatingSystemImpl_getMaxFileDescriptorCount;
Java_sun_management_OperatingSystemImpl_getOpenFileDescriptorCount;
Java_sun_management_OperatingSystemImpl_getProcessCpuLoad;
Java_sun_management_OperatingSystemImpl_getProcessCpuTime;
Java_sun_management_OperatingSystemImpl_getMaxFileDescriptorCount0;
Java_sun_management_OperatingSystemImpl_getOpenFileDescriptorCount0;
Java_sun_management_OperatingSystemImpl_getProcessCpuLoad0;
Java_sun_management_OperatingSystemImpl_getProcessCpuTime0;
Java_sun_management_OperatingSystemImpl_getSystemCpuLoad0;
Java_sun_management_OperatingSystemImpl_getTotalPhysicalMemorySize0;
Java_sun_management_OperatingSystemImpl_getTotalSwapSpaceSize0;
Java_sun_management_OperatingSystemImpl_getSingleCpuLoad0;
Java_sun_management_OperatingSystemImpl_getHostConfiguredCpuCount0;
Java_sun_management_OperatingSystemImpl_initialize;
Java_sun_management_OperatingSystemImpl_getHostOnlineCpuCount0;
Java_sun_management_OperatingSystemImpl_getHostTotalCpuTicks0;
Java_sun_management_OperatingSystemImpl_initialize0;
Java_sun_management_ClassLoadingImpl_setVerboseClass;
Java_sun_management_DiagnosticCommandImpl_executeDiagnosticCommand;
Java_sun_management_DiagnosticCommandImpl_getDiagnosticCommands;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ private static Metrics initContainerSubSystems() {
try (Stream<String> lines =
readFilePrivileged(Paths.get("/proc/self/cgroup"))) {

lines.map(line -> line.split(":"))
// The limit value of 3 is because /proc/self/cgroup contains three
// colon-separated tokens per line. The last token, cgroup path, might
// contain a ':'.
lines.map(line -> line.split(":", 3))
.filter(line -> (line.length >= 3))
.forEach(line -> setSubSystemPath(metrics, line));

Expand Down
20 changes: 4 additions & 16 deletions src/macosx/classes/sun/java2d/opengl/CGLGraphicsConfig.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2015, 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 @@ -379,23 +379,11 @@ public ImageCapabilities getImageCapabilities() {
public VolatileImage createCompatibleVolatileImage(int width, int height,
int transparency,
int type) {
if (type == FLIP_BACKBUFFER || type == WINDOW || type == UNDEFINED ||
transparency == Transparency.BITMASK)
{
if ((type != FBOBJECT && type != TEXTURE)
|| transparency == Transparency.BITMASK
|| type == FBOBJECT && !isCapPresent(CAPS_EXT_FBOBJECT)) {
return null;
}

if (type == FBOBJECT) {
if (!isCapPresent(CAPS_EXT_FBOBJECT)) {
return null;
}
} else if (type == PBUFFER) {
boolean isOpaque = transparency == Transparency.OPAQUE;
if (!isOpaque && !isCapPresent(CAPS_STORED_ALPHA)) {
return null;
}
}

SunVolatileImage vi = new AccelTypedVolatileImage(this, width, height,
transparency, type);
Surface sd = vi.getDestSurface();
Expand Down
5 changes: 1 addition & 4 deletions src/macosx/classes/sun/java2d/opengl/CGLSurfaceData.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ private native void initOps(OGLGraphicsConfig gc, long pConfigInfo,
long pPeerData, long layerPtr, int xoff,
int yoff, boolean isOpaque);

protected native boolean initPbuffer(long pData, long pConfigInfo,
boolean isOpaque, int width, int height);

protected CGLSurfaceData(CGLGraphicsConfig gc, ColorModel cm, int type,
int width, int height) {
super(gc, cm, type);
Expand Down Expand Up @@ -140,7 +137,7 @@ public static CGLOffScreenSurfaceData createData(CPlatformView pView,

/**
* Creates a SurfaceData object representing an off-screen buffer (either a
* Pbuffer or Texture).
* FBO or Texture).
*/
public static CGLOffScreenSurfaceData createData(CGLGraphicsConfig gc,
int width, int height, ColorModel cm, Image image, int type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,29 @@

public class CGLVolatileSurfaceManager extends VolatileSurfaceManager {

private boolean accelerationEnabled;
private final boolean accelerationEnabled;

public CGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) {
super(vImg, context);

/*
* We will attempt to accelerate this image only under the
* following conditions:
* - the image is opaque OR
* - the image is translucent AND
* - the GraphicsConfig supports the FBO extension OR
* - the GraphicsConfig has a stored alpha channel
* - the image is not bitmask AND the GraphicsConfig supports the FBO
* extension
*/
int transparency = vImg.getTransparency();
CGLGraphicsConfig gc = (CGLGraphicsConfig)vImg.getGraphicsConfig();
accelerationEnabled =
(transparency == Transparency.OPAQUE) ||
((transparency == Transparency.TRANSLUCENT) &&
(gc.isCapPresent(CAPS_EXT_FBOBJECT) ||
gc.isCapPresent(CAPS_STORED_ALPHA)));
CGLGraphicsConfig gc = (CGLGraphicsConfig) vImg.getGraphicsConfig();
accelerationEnabled = gc.isCapPresent(CAPS_EXT_FBOBJECT)
&& transparency != Transparency.BITMASK;
}

protected boolean isAccelerationEnabled() {
return accelerationEnabled;
}

/**
* Create a pbuffer-based SurfaceData object (or init the backbuffer
* Create a FBO-based SurfaceData object (or init the backbuffer
* of an existing window if this is a double buffered GraphicsConfig)
*/
protected SurfaceData initAcceleratedSurface() {
Expand Down Expand Up @@ -111,10 +106,9 @@ protected SurfaceData initAcceleratedSurface() {
ColorModel cm = gc.getColorModel(vImg.getTransparency());
int type = vImg.getForcedAccelSurfaceType();
// if acceleration type is forced (type != UNDEFINED) then
// use the forced type, otherwise choose one based on caps
// use the forced type, otherwise choose FBOBJECT
if (type == OGLSurfaceData.UNDEFINED) {
type = gc.isCapPresent(CAPS_EXT_FBOBJECT) ?
OGLSurfaceData.FBOBJECT : OGLSurfaceData.PBUFFER;
type = OGLSurfaceData.FBOBJECT;
}
if (createVSynced) {
// TODO: modify parameter to delegate
Expand Down
5 changes: 3 additions & 2 deletions src/macosx/native/sun/awt/AWTWindow.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2021, 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 @@ -1037,7 +1037,8 @@ - (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)newFrame {
screenContentRect.origin.y - frame.origin.y,
screenContentRect.size.width,
screenContentRect.size.height);
nsWindow.contentView.frame = contentFrame;
NSView* view = (NSView*)nsWindow.contentView;
view.frame = contentFrame;
resized = YES;
}
}
Expand Down
18 changes: 5 additions & 13 deletions src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2015, 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 @@ -63,7 +63,7 @@

CGLCtxInfo *ctxinfo = (CGLCtxInfo *)oglc->ctxInfo;
if (ctxinfo != NULL) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
[NSOpenGLContext clearCurrentContext];
[ctxinfo->context clearDrawable];
[ctxinfo->context release];
Expand Down Expand Up @@ -339,18 +339,10 @@ + (void) _getCGLConfigInfo: (NSMutableArray *)argValue {
if (value != 0) {
caps |= CAPS_DOUBLEBUFFERED;
}
[sharedPixelFormat
getValues: &value
forAttribute: NSOpenGLPFAAlphaSize
forVirtualScreen: contextVirtualScreen];
if (value != 0) {
caps |= CAPS_STORED_ALPHA;
}

J2dRlsTraceLn2(J2D_TRACE_INFO,
"CGLGraphicsConfig_getCGLConfigInfo: db=%d alpha=%d",
(caps & CAPS_DOUBLEBUFFERED) != 0,
(caps & CAPS_STORED_ALPHA) != 0);
J2dRlsTraceLn1(J2D_TRACE_INFO,
"CGLGraphicsConfig_getCGLConfigInfo: db=%d",
(caps & CAPS_DOUBLEBUFFERED) != 0);

// remove before shipping (?)
#if 1
Expand Down
3 changes: 1 addition & 2 deletions src/macosx/native/sun/java2d/opengl/CGLSurfaceData.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2015, 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 @@ -39,7 +39,6 @@ typedef struct _CGLSDOps {
AWTView *peerData;
CGLLayer *layer;
GLclampf argb[4]; // background clear color
NSOpenGLPixelBuffer *pbuffer;
CGLGraphicsConfigInfo *configInfo;
} CGLSDOps;

Expand Down
Loading

0 comments on commit 06faeab

Please sign in to comment.