sqreen 1.16.0-java → 1.16.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sqreen/js/mini_racer_adapter.rb +7 -8
- data/lib/sqreen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754da73eca0aea931a2ad0c97e55f064cac7d859ccaf90db55e686e5c6d4b33d
|
4
|
+
data.tar.gz: 7aefe4c1ceee3839458cacb198ea27da9983d81a48d91c9524a66dd842676d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72f75fbc48cca61d1d31efac5fe55583398c0f59035957f60ee411b57b54b6eb22c32790ef7357b587ffa16a1620a176da13068221faaf6cdd42fc337693b962
|
7
|
+
data.tar.gz: 4139fadf23e4a7616703a4eee2fd2d59b16287d20c1487be611785aa778832fd5596b03269782345598c38cb8e6981d9e86079bfa7c527828fae53d72febf436
|
@@ -3,7 +3,8 @@ require 'json'
|
|
3
3
|
|
4
4
|
module Sqreen
|
5
5
|
module Js
|
6
|
-
|
6
|
+
DEFAULT_GC_THRESHOLD = 15000000 # 15 MB
|
7
|
+
|
7
8
|
|
8
9
|
class MiniRacerAdapter < JsServiceAdapter
|
9
10
|
def initialize(vendored = false)
|
@@ -65,13 +66,13 @@ module Sqreen
|
|
65
66
|
if context.gc_load > 30
|
66
67
|
if context.gc_threshold_in_bytes == DEFAULT_GC_THRESHOLD
|
67
68
|
context.gc_threshold_in_bytes *= 2
|
68
|
-
Sqreen.log.warn(
|
69
|
-
'doubling the threshold to
|
70
|
-
context
|
69
|
+
Sqreen.log.warn("Context #{context} had too many close garbage " \
|
70
|
+
'collections; doubling the threshold to ' \
|
71
|
+
"#{context.gc_threshold_in_bytes} bytes")
|
71
72
|
context.gc_load = 0
|
72
73
|
else
|
73
|
-
Sqreen.log.warn(
|
74
|
-
'collections; discarding it'
|
74
|
+
Sqreen.log.warn("Context #{context} had too many close garbage " \
|
75
|
+
'collections; discarding it')
|
75
76
|
context.dispose
|
76
77
|
return
|
77
78
|
end
|
@@ -126,8 +127,6 @@ module Sqreen
|
|
126
127
|
private
|
127
128
|
|
128
129
|
class << self
|
129
|
-
DEFAULT_GC_THRESHOLD = 15000000 # 15 MB
|
130
|
-
|
131
130
|
def define_sqreen_context(modoole)
|
132
131
|
# Context specialized for Sqreen usage
|
133
132
|
Sqreen::Js.const_set 'SqreenContext', Class.new(modoole.const_get('Context'))
|
data/lib/sqreen/version.rb
CHANGED