changeset 2687:dad45f85e3a3

PR3829: arc_priority representation creates an implicit limit on character sequence within regexp 2018-11-20 Andrew John Hughes <gnu_andrew@member.fsf.org> PR3829: arc_priority representation creates an implicit limit on character sequence within regexp * NEWS: Updated. 2018-09-12 Severin Gehwolf <sgehwolf@redhat.com> PR3829: arc_priority representation creates an implicit limit on character sequence within regexp * tapset/jstack.stp.in: Workaround limit on regexp length with SystemTap >= 3.2.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Mon, 22 Feb 2021 00:35:57 +0000
parents 3d7ff04a7ed7
children dc89882c06da
files ChangeLog NEWS tapset/jstack.stp.in
diffstat 3 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Feb 22 00:28:53 2021 +0000
+++ b/ChangeLog	Mon Feb 22 00:35:57 2021 +0000
@@ -1,3 +1,16 @@
+2018-11-20  Andrew John Hughes  <gnu_andrew@member.fsf.org>
+
+	PR3829: arc_priority representation creates an
+	implicit limit on character sequence within regexp
+	* NEWS: Updated.
+
+2018-09-12  Severin Gehwolf  <sgehwolf@redhat.com>
+
+	PR3829: arc_priority representation creates an
+	implicit limit on character sequence within regexp
+	* tapset/jstack.stp.in: Workaround limit on regexp
+	length with SystemTap >= 3.2.
+
 2017-04-03  Andrew John Hughes  <gnu_andrew@member.fsf.org>
 
 	PR3828: Architectures unsupported by SystemTap
--- a/NEWS	Mon Feb 22 00:28:53 2021 +0000
+++ b/NEWS	Mon Feb 22 00:35:57 2021 +0000
@@ -14,9 +14,10 @@
 
 * New features
   - PR3827: jstack.stp should support AArch64
-* Bug fixes
+* SystemTap
   - PR3825: SystemTap is heavily confused by multiple JDKs
   - PR3828: Architectures unsupported by SystemTap tapsets throw a parse error
+  - PR3829: arc_priority representation creates an implicit limit on character sequence within regexp
 
 New in release 5.0.0 (2019-XX-XX):
 
--- a/tapset/jstack.stp.in	Mon Feb 22 00:28:53 2021 +0000
+++ b/tapset/jstack.stp.in	Mon Feb 22 00:35:57 2021 +0000
@@ -48,7 +48,8 @@
 /* Resolve multiple installed java versions conflict. */
 @define _private %( %( systemtap_v >= "3.0" %? private %) %)
 @define _check_match %(
-  %( systemtap_v >= "3.0" %? if (pp() !~ "@prefix@") next %)
+  %( systemtap_v >= "3.2" %? if (strpos(pp(), "@prefix@") < 0) next %)
+  %( systemtap_v < "3.2" && systemtap_v >= "3.0" %? if (pp() !~ "@prefix@") next %)
 %)
 
 @_private global CodeCache_heap;