Skip to content

Commit

Permalink
Remove BG classloading debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Kayser committed Feb 9, 2010
1 parent 1812a6d commit 9e1b428
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 193 deletions.
3 changes: 0 additions & 3 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

# Initializer for the NewRelic Agent

# We use this to test the agent to ensure it's not loading classes inappropriately
#require 'new_relic/agent/patch_const_missing'
#ClassLoadingWatcher.flag_const_missing = true
begin
# JRuby's glassfish plugin is trying to run the Initializer twice,
# which isn't a good thing so we ignore subsequent invocations here.
Expand Down
6 changes: 0 additions & 6 deletions lib/new_relic/agent/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,9 @@ def launch_worker_thread

@task_loop = WorkerLoop.new(log)

if control['check_bg_loading']
log.warn "Agent background loading checking turned on"
require 'new_relic/agent/patch_const_missing'
ClassLoadingWatcher.enable_warning
end
log.debug "Creating RPM worker thread."
@worker_thread = Thread.new do
begin
ClassLoadingWatcher.background_thread=Thread.current if control['check_bg_loading']
NewRelic::Agent.disable_all_tracing do
connect
run_task_loop if @connected
Expand Down
125 changes: 0 additions & 125 deletions lib/new_relic/agent/patch_const_missing.rb

This file was deleted.

3 changes: 0 additions & 3 deletions test/config/newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ test:
yval: yes
sval: sure

# checks for loading classes on the background thread
check_bg_loading: true

transaction_tracer:
record_sql: raw
transaction_threshold: Apdex_f # case insensitive
Expand Down
56 changes: 0 additions & 56 deletions test/new_relic/agent/classloader_patch_test.rb

This file was deleted.

0 comments on commit 9e1b428

Please sign in to comment.