View | Details | Raw Unified | Return to bug 239368 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-hotspot_agent_src_os_bsd_ps__proc.c (+12 lines)
Line 0 Link Here
1
--- hotspot/agent/src/os/bsd/ps_proc.c.orig	2019-07-21 20:24:28 UTC
2
+++ hotspot/agent/src/os/bsd/ps_proc.c
3
@@ -27,8 +27,8 @@
4
 #include <stdlib.h>
5
 #include <string.h>
6
 #include <errno.h>
7
-#include <sys/sysctl.h>
8
 #include <sys/types.h>
9
+#include <sys/sysctl.h>
10
 #include <sys/wait.h>
11
 #include <sys/ptrace.h>
12
 #include <sys/param.h>
(-)files/patch-hotspot_src_cpu_ppc_vm_stubGenerator__ppc.cpp (+155 lines)
Line 0 Link Here
1
--- hotspot/src/cpu/ppc/vm/stubGenerator_ppc.cpp.orig	2019-07-22 16:46:38 UTC
2
+++ hotspot/src/cpu/ppc/vm/stubGenerator_ppc.cpp
3
@@ -1212,12 +1212,6 @@ class StubGenerator: public StubCodeGenerator {
4
       // Prefetch the data into the L2 cache.
5
       __ dcbt(R3_ARG1, 0);
6
 
7
-      // If supported set DSCR pre-fetch to deepest.
8
-      if (VM_Version::has_mfdscr()) {
9
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val | 7);
10
-        __ mtdscr(tmp2);
11
-      }
12
-
13
       __ li(tmp1, 16);
14
 
15
       // Backbranch target aligned to 32-byte. Not 16-byte align as
16
@@ -1236,12 +1230,6 @@ class StubGenerator: public StubCodeGenerator {
17
       __ addi(R4_ARG2, R4_ARG2, 32);       // Update dsc+=32
18
       __ bdnz(l_10);                       // Dec CTR and loop if not zero.
19
 
20
-      // Restore DSCR pre-fetch value.
21
-      if (VM_Version::has_mfdscr()) {
22
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val);
23
-        __ mtdscr(tmp2);
24
-      }
25
-
26
     } // VSX
27
    } // FasterArrayCopy
28
 
29
@@ -1481,11 +1469,6 @@ class StubGenerator: public StubCodeGenerator {
30
         // Prefetch src data into L2 cache.
31
         __ dcbt(R3_ARG1, 0);
32
 
33
-        // If supported set DSCR pre-fetch to deepest.
34
-        if (VM_Version::has_mfdscr()) {
35
-          __ load_const_optimized(tmp2, VM_Version::_dscr_val | 7);
36
-          __ mtdscr(tmp2);
37
-        }
38
         __ li(tmp1, 16);
39
 
40
         // Backbranch target aligned to 32-byte. It's not aligned 16-byte
41
@@ -1504,12 +1487,6 @@ class StubGenerator: public StubCodeGenerator {
42
         __ addi(R4_ARG2, R4_ARG2, 32);       // Update dsc+=32.
43
         __ bdnz(l_9);                        // Dec CTR and loop if not zero.
44
 
45
-        // Restore DSCR pre-fetch value.
46
-        if (VM_Version::has_mfdscr()) {
47
-          __ load_const_optimized(tmp2, VM_Version::_dscr_val);
48
-          __ mtdscr(tmp2);
49
-        }
50
-
51
       }
52
     } // FasterArrayCopy
53
     __ bind(l_6);
54
@@ -1674,12 +1651,6 @@ class StubGenerator: public StubCodeGenerator {
55
       // Prefetch the data into the L2 cache.
56
       __ dcbt(R3_ARG1, 0);
57
 
58
-      // If supported set DSCR pre-fetch to deepest.
59
-      if (VM_Version::has_mfdscr()) {
60
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val | 7);
61
-        __ mtdscr(tmp2);
62
-      }
63
-
64
       __ li(tmp1, 16);
65
 
66
       // Backbranch target aligned to 32-byte. Not 16-byte align as
67
@@ -1698,12 +1669,6 @@ class StubGenerator: public StubCodeGenerator {
68
       __ addi(R4_ARG2, R4_ARG2, 32);       // Update dsc+=32
69
       __ bdnz(l_7);                        // Dec CTR and loop if not zero.
70
 
71
-      // Restore DSCR pre-fetch value.
72
-      if (VM_Version::has_mfdscr()) {
73
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val);
74
-        __ mtdscr(tmp2);
75
-      }
76
-
77
     } // VSX
78
    } // FasterArrayCopy
79
 
80
@@ -1821,12 +1786,6 @@ class StubGenerator: public StubCodeGenerator {
81
       // Prefetch the data into the L2 cache.
82
       __ dcbt(R3_ARG1, 0);
83
 
84
-      // If supported set DSCR pre-fetch to deepest.
85
-      if (VM_Version::has_mfdscr()) {
86
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val | 7);
87
-        __ mtdscr(tmp2);
88
-      }
89
-
90
       __ li(tmp1, 16);
91
 
92
       // Backbranch target aligned to 32-byte. Not 16-byte align as
93
@@ -1845,11 +1804,6 @@ class StubGenerator: public StubCodeGenerator {
94
       __ stxvd2x(tmp_vsr1, R4_ARG2);       // Store to dst
95
       __ bdnz(l_4);
96
 
97
-      // Restore DSCR pre-fetch value.
98
-      if (VM_Version::has_mfdscr()) {
99
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val);
100
-        __ mtdscr(tmp2);
101
-      }
102
      }
103
 
104
       __ cmpwi(CCR0, R5_ARG3, 0);
105
@@ -1949,12 +1903,6 @@ class StubGenerator: public StubCodeGenerator {
106
       // Prefetch the data into the L2 cache.
107
       __ dcbt(R3_ARG1, 0);
108
 
109
-      // If supported set DSCR pre-fetch to deepest.
110
-      if (VM_Version::has_mfdscr()) {
111
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val | 7);
112
-        __ mtdscr(tmp2);
113
-      }
114
-
115
       __ li(tmp1, 16);
116
 
117
       // Backbranch target aligned to 32-byte. Not 16-byte align as
118
@@ -1973,12 +1921,6 @@ class StubGenerator: public StubCodeGenerator {
119
       __ addi(R4_ARG2, R4_ARG2, 32);       // Update dsc+=32
120
       __ bdnz(l_5);                        // Dec CTR and loop if not zero.
121
 
122
-      // Restore DSCR pre-fetch value.
123
-      if (VM_Version::has_mfdscr()) {
124
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val);
125
-        __ mtdscr(tmp2);
126
-      }
127
-
128
     } // VSX
129
    } // FasterArrayCopy
130
 
131
@@ -2074,12 +2016,6 @@ class StubGenerator: public StubCodeGenerator {
132
       // Prefetch the data into the L2 cache.
133
       __ dcbt(R3_ARG1, 0);
134
 
135
-      // If supported set DSCR pre-fetch to deepest.
136
-      if (VM_Version::has_mfdscr()) {
137
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val | 7);
138
-        __ mtdscr(tmp2);
139
-      }
140
-
141
       __ li(tmp1, 16);
142
 
143
       // Backbranch target aligned to 32-byte. Not 16-byte align as
144
@@ -2098,11 +2034,6 @@ class StubGenerator: public StubCodeGenerator {
145
       __ stxvd2x(tmp_vsr1, R4_ARG2);       // Store to dst
146
       __ bdnz(l_4);
147
 
148
-      // Restore DSCR pre-fetch value.
149
-      if (VM_Version::has_mfdscr()) {
150
-        __ load_const_optimized(tmp2, VM_Version::_dscr_val);
151
-        __ mtdscr(tmp2);
152
-      }
153
      }
154
 
155
       __ cmpwi(CCR0, R5_ARG3, 0);

Return to bug 239368