Skip to content

Commit f954364

Browse files
authored
feat(mobile): adopt radiance memory monitor, remove Go-side memory logger (#8893)
* bump radiance - mobile memory monitor * remove dead memory logger * remove dangling comment * point radiance to main
1 parent b3e3457 commit f954364

4 files changed

Lines changed: 9 additions & 123 deletions

File tree

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ replace github.com/quic-go/qpack => github.com/quic-go/qpack v0.5.1
2525
require (
2626
github.com/alecthomas/assert/v2 v2.3.0
2727
github.com/getlantern/lantern-server-provisioner v0.0.0-20251031121934-8ea031fccfa9
28-
github.com/getlantern/radiance v0.0.0-20260702205513-686b6b916dcb
28+
github.com/getlantern/radiance v0.0.0-20260706185153-bce252479f03
2929
github.com/sagernet/sing-box v1.12.22
3030
golang.org/x/mobile v0.0.0-20250711185624-d5bb5ecc55c0
3131
golang.org/x/sys v0.45.0
@@ -166,12 +166,12 @@ require (
166166
github.com/getlantern/algeneva v0.0.0-20250307163401-1824e7b54f52 // indirect
167167
github.com/getlantern/amp v0.0.0-20260606002220-a8629924577c // indirect
168168
github.com/getlantern/broflake v0.0.0-20260612203837-c4d1516de8dc // indirect
169-
github.com/getlantern/common v1.2.1-0.20260326210434-cb69537aaf46 // indirect
169+
github.com/getlantern/common v1.2.1-0.20260705172801-57aaafd97c1b // indirect
170170
github.com/getlantern/dnstt v0.0.0-20260603191204-3b860502c0ac // indirect
171171
github.com/getlantern/domainfront v0.0.0-20260625001429-518c0256669b // indirect
172172
github.com/getlantern/keepcurrent v0.0.0-20260616120552-f204338b01a3 // indirect
173173
github.com/getlantern/kindling v0.0.0-20260625002640-7cdf7184420c // indirect
174-
github.com/getlantern/lantern-box v0.0.95 // indirect
174+
github.com/getlantern/lantern-box v0.0.100 // indirect
175175
github.com/getlantern/lantern-water v0.0.0-20260520145825-958775d51395 // indirect
176176
github.com/getlantern/osversion v0.0.0-20240418205916-2e84a4a4e175 // indirect
177177
github.com/getlantern/pluriconfig v0.0.0-20251126214241-8cc8bc561535 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ github.com/getlantern/amp v0.0.0-20260606002220-a8629924577c h1:ZzxuhIWO295y4eE6
225225
github.com/getlantern/amp v0.0.0-20260606002220-a8629924577c/go.mod h1:b5teAOFT+vpBqc2CHoz74QTEM15iOv1PLdQogwXcfrM=
226226
github.com/getlantern/broflake v0.0.0-20260612203837-c4d1516de8dc h1:AVY56mzJHM4CBTrW9oBgpShB5S68gGunvk9GMvJrkzM=
227227
github.com/getlantern/broflake v0.0.0-20260612203837-c4d1516de8dc/go.mod h1:bIxM6xon/ADgprn6tZXYdXGrUIMCzq6u8zO9rET50IE=
228-
github.com/getlantern/common v1.2.1-0.20260326210434-cb69537aaf46 h1:Ab2esudqgFz2K1WYQKtX+58kaiVMX0UohjW2XmdEgf4=
229-
github.com/getlantern/common v1.2.1-0.20260326210434-cb69537aaf46/go.mod h1:eSSuV4bMPgQJnczBw+KWWqWNo1itzmVxC++qUBPRTt0=
228+
github.com/getlantern/common v1.2.1-0.20260705172801-57aaafd97c1b h1:R6YoZuQFLdArpovoMtPxa3ohqJzx6bpJ+BRxDaoMdWk=
229+
github.com/getlantern/common v1.2.1-0.20260705172801-57aaafd97c1b/go.mod h1:eSSuV4bMPgQJnczBw+KWWqWNo1itzmVxC++qUBPRTt0=
230230
github.com/getlantern/context v0.0.0-20220418194847-3d5e7a086201 h1:oEZYEpZo28Wdx+5FZo4aU7JFXu0WG/4wJWese5reQSA=
231231
github.com/getlantern/context v0.0.0-20220418194847-3d5e7a086201/go.mod h1:Y9WZUHEb+mpra02CbQ/QczLUe6f0Dezxaw5DCJlJQGo=
232232
github.com/getlantern/dnstt v0.0.0-20260603191204-3b860502c0ac h1:TMvkNgLVyIYAfu1dYrOuRPYMVY+cHEo1C0CYWhtSw2A=
@@ -245,8 +245,8 @@ github.com/getlantern/keepcurrent v0.0.0-20260616120552-f204338b01a3 h1:YPBbuyvd
245245
github.com/getlantern/keepcurrent v0.0.0-20260616120552-f204338b01a3/go.mod h1:ag5g9aWUw2FJcX5RVRpJ9EBQBy5yJuy2WXDouIn/m4w=
246246
github.com/getlantern/kindling v0.0.0-20260625002640-7cdf7184420c h1:F4/LE+5zehr6AUfuJBab3iubscOOTdFZxwYldIpLgg8=
247247
github.com/getlantern/kindling v0.0.0-20260625002640-7cdf7184420c/go.mod h1:rN6O8pIQ9nc7Gyvtf2GGSjiWEFIApGsRCHkgYz0h3Ak=
248-
github.com/getlantern/lantern-box v0.0.95 h1:tsgjKQjWjPy3ZyCIYijT91W3XJY+8XENxb6mUogthI0=
249-
github.com/getlantern/lantern-box v0.0.95/go.mod h1:yQhnLpnDY17+c/s+4WiiUhun3HtoHNj5NFb355ThKQk=
248+
github.com/getlantern/lantern-box v0.0.100 h1:mnWdy4lfPBABtu8ClWQ/8qzfV5PAJWjrbKapk37dw/o=
249+
github.com/getlantern/lantern-box v0.0.100/go.mod h1:yQhnLpnDY17+c/s+4WiiUhun3HtoHNj5NFb355ThKQk=
250250
github.com/getlantern/lantern-server-provisioner v0.0.0-20251031121934-8ea031fccfa9 h1:6seyD2f9tz2am0YQd/Qn+q7LFiiQgnmxgwWFnVceGZw=
251251
github.com/getlantern/lantern-server-provisioner v0.0.0-20251031121934-8ea031fccfa9/go.mod h1:s0VKrlJf/z+M0U8IKHFL2hfuflocRw3SINmMacrTlMA=
252252
github.com/getlantern/lantern-water v0.0.0-20260520145825-958775d51395 h1:grfGavAUp2E9w9ZoJuM3FyWyQ0sCJ64V4ZMKtZKRqTc=
@@ -259,8 +259,8 @@ github.com/getlantern/pluriconfig v0.0.0-20251126214241-8cc8bc561535 h1:rtDmW8YL
259259
github.com/getlantern/pluriconfig v0.0.0-20251126214241-8cc8bc561535/go.mod h1:WKJEdjMOD4IuTRYwjQHjT4bmqDl5J82RShMLxPAvi0Q=
260260
github.com/getlantern/publicip v0.0.0-20260328175246-2c460fe80c6b h1:gMYJzEhLrmIqQ+JnjiYNm+UyUDalK3WUmVyecFwmV5g=
261261
github.com/getlantern/publicip v0.0.0-20260328175246-2c460fe80c6b/go.mod h1:NpfXdK4ldEKkjQ4P1R+DBF4ua5VFOlxmgHROTnYrApg=
262-
github.com/getlantern/radiance v0.0.0-20260702205513-686b6b916dcb h1:BgAE2ZDK5jWjMUbW+54YyGX98teafgAgxFKr9DpujFA=
263-
github.com/getlantern/radiance v0.0.0-20260702205513-686b6b916dcb/go.mod h1:rXbNFXzQvbnlIlaIF/6EJTwxK9DrAyKowkpUq/5udkI=
262+
github.com/getlantern/radiance v0.0.0-20260706185153-bce252479f03 h1:yKLQK9wMXlghg4ksSDenZVYbUBphblutaFMomS6ZqQU=
263+
github.com/getlantern/radiance v0.0.0-20260706185153-bce252479f03/go.mod h1:p6wcyzCrsFfrdrLNuQirB0ugeg7OjdFlZmBgNTu4D1w=
264264
github.com/getlantern/samizdat v0.0.3-0.20260529191731-5ea8ae61ddbf h1:KxiMF+oG0rTtuBi7GiIaHfccYOf69rLJ/VnO5myoYc4=
265265
github.com/getlantern/samizdat v0.0.3-0.20260529191731-5ea8ae61ddbf/go.mod h1:uEeykQSW2/6rTjfPlj3MTTo59poSHXfAHTGgzYDkbr0=
266266
github.com/getlantern/semconv v0.0.0-20260327040646-21845dda05cb h1:c5YM7b3a4r2J8Eh89KkI6M/iTFe6Bi+b8AJlfkKdFq4=

lantern-core/mobile/memory_logger.go

Lines changed: 0 additions & 110 deletions
This file was deleted.

lantern-core/mobile/mobile.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,6 @@ func StartIPCServer(platform utils.PlatformInterface, opts *utils.Opts) error {
308308
if err := ipcServer.Start(); err != nil {
309309
return struct{}{}, err
310310
}
311-
// Start the Go-side memory logger for the tunnel process, mirroring the
312-
// Swift PacketTunnelProvider logger. Stopped from CloseIPCServer.
313-
startMemoryLogger()
314311
return struct{}{}, nil
315312
})
316313
return err
@@ -320,7 +317,6 @@ func CloseIPCServer() error {
320317
_, err := utils.RunOffCgoStack(func() (struct{}, error) {
321318
ipcMu.Lock()
322319
defer ipcMu.Unlock()
323-
stopMemoryLogger()
324320
if ipcBackend != nil {
325321
ipcBackend.Close()
326322
ipcBackend = nil

0 commit comments

Comments
 (0)