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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb0e9ba4508186b7cec232b310977918cdaf55cd1e677bb4322fe78d8745bfa6
4
- data.tar.gz: 27ab3ed66faced88fa455ab93311b441126b8ac0b0aca1fb1512fdfe5ff7ca28
3
+ metadata.gz: 754da73eca0aea931a2ad0c97e55f064cac7d859ccaf90db55e686e5c6d4b33d
4
+ data.tar.gz: 7aefe4c1ceee3839458cacb198ea27da9983d81a48d91c9524a66dd842676d92
5
5
  SHA512:
6
- metadata.gz: 1db65feedb4cd304bc268132430c058b52699ac25103d8c6578b55d5269281b26f60accdc14c26fc800f30b467c81d7ea1489ee5ab8ffb92895fd7a66beee1e5
7
- data.tar.gz: 05b387f696e7b1892bab723a39828fb0c5dd7b7bc691fdb7bdaa64f53cda6982c87582b536d22e60f24c6a813251a115be454882d034d1546546d46b685551db
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
- GC_MINI_RACER = 10_000
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('Context %s had too many close garbage collections; ' \
69
- 'doubling the threshold to %d bytes',
70
- context, context.gc_threshold_in_bytes)
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('Context %s had too many close garbage ' \
74
- 'collections; discarding it', context)
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'))
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  module Sqreen
4
- VERSION = '1.16.0'.freeze
4
+ VERSION = '1.16.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.1
5
5
  platform: java
6
6
  authors:
7
7
  - Sqreen